… | |
… | |
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; |