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.77 by root, Sat Nov 17 23:40:05 2018 UTC vs.
Revision 1.78 by root, Sat Dec 1 20:22:13 2018 UTC

205 /* we need to clear these to -1 and not zero - otherwise, 205 /* we need to clear these to -1 and not zero - otherwise,
206 * if a player quits and starts a new character, we wont 206 * if a player quits and starts a new character, we wont
207 * send new values to the client, as things like exp start 207 * send new values to the client, as things like exp start
208 * at zero. 208 * at zero.
209 */ 209 */
210 for (int i = 0; i < array_length (last_skill_exp); i++) 210 for (int i = 0; i < ecb_array_length (last_skill_exp); i++)
211 last_skill_exp[i] = -1; 211 last_skill_exp[i] = -1;
212 212
213 for (int i = 0; i < array_length (last_resist); i++) 213 for (int i = 0; i < ecb_array_length (last_resist); i++)
214 last_resist[i] = -1; 214 last_resist[i] = -1;
215 215
216 last_weapon_sp = -1; 216 last_weapon_sp = -1;
217 last_level = -1; 217 last_level = -1;
218 last_stats.exp = -1; 218 last_stats.exp = -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines