… | |
… | |
136 | if ((time (NULL) - cst_lst.time_start) >= CS_LOGTIME) |
136 | if ((time (NULL) - cst_lst.time_start) >= CS_LOGTIME) |
137 | write_cs_stats (); |
137 | write_cs_stats (); |
138 | #endif |
138 | #endif |
139 | |
139 | |
140 | //TODO: should not be done here, either |
140 | //TODO: should not be done here, either |
141 | for (int i = 0; i < clients.size (); ++i) |
141 | for (unsigned i = 0; i < clients.size (); ++i) |
142 | { |
142 | { |
143 | client *s = clients [i]; |
143 | client *s = clients [i]; |
144 | player *pl = s->pl; |
144 | player *pl = s->pl; |
145 | |
145 | |
146 | if (pl && pl->ns && !pl->ns->destroyed ()) |
146 | if (pl && pl->ns && !pl->ns->destroyed ()) |