… | |
… | |
182 | for (sockvec::iterator i = clients.begin (); i != clients.end (); ++i) |
182 | for (sockvec::iterator i = clients.begin (); i != clients.end (); ++i) |
183 | { |
183 | { |
184 | client *s = *i; |
184 | client *s = *i; |
185 | player *pl = s->pl; |
185 | player *pl = s->pl; |
186 | |
186 | |
187 | s->handle_packet (); |
|
|
188 | |
|
|
189 | for (int i = 16; --i; ) //D |
|
|
190 | if (!//D |
|
|
191 | s->handle_command () |
|
|
192 | ) break;//D |
|
|
193 | |
|
|
194 | //TODO: should not be done here, either |
187 | //TODO: should not be done here, either |
195 | if (s->status != Ns_Dead && pl) |
188 | if (s->status != Ns_Dead && pl) |
196 | { |
189 | { |
197 | /* Update the players stats once per tick. More efficient than |
190 | /* Update the players stats once per tick. More efficient than |
198 | * sending them whenever they change, and probably just as useful |
191 | * sending them whenever they change, and probably just as useful |