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