ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/init.C
(Generate patch)

Comparing deliantra/server/socket/init.C (file contents):
Revision 1.68 by root, Sat Oct 16 22:51:52 2010 UTC vs.
Revision 1.69 by root, Tue Feb 8 00:17:14 2011 UTC

196 /* we need to clear these to -1 and not zero - otherwise, 196 /* we need to clear these to -1 and not zero - otherwise,
197 * if a player quits and starts a new character, we wont 197 * if a player quits and starts a new character, we wont
198 * send new values to the client, as things like exp start 198 * send new values to the client, as things like exp start
199 * at zero. 199 * at zero.
200 */ 200 */
201 for (int i = 0; i < NUM_SKILLS; i++) 201 for (int i = 0; i < array_length (last_skill_exp); i++)
202 last_skill_exp[i] = -1; 202 last_skill_exp[i] = -1;
203 203
204 for (int i = 0; i < NROFATTACKS; i++) 204 for (int i = 0; i < array_length (last_resist); i++)
205 last_resist[i] = -1; 205 last_resist[i] = -1;
206 206
207 last_weapon_sp = -1; 207 last_weapon_sp = -1;
208 last_level = -1; 208 last_level = -1;
209 last_stats.exp = -1; 209 last_stats.exp = -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines