… | |
… | |
1797 | { |
1797 | { |
1798 | // reattach to all attachable objects in the game. |
1798 | // reattach to all attachable objects in the game. |
1799 | for (sockvec::iterator i = clients.begin (); i != clients.end (); ++i) |
1799 | for (sockvec::iterator i = clients.begin (); i != clients.end (); ++i) |
1800 | (*i)->reattach (); |
1800 | (*i)->reattach (); |
1801 | |
1801 | |
1802 | for (player *pl = first_player; pl; pl = pl->next) |
1802 | for_all_players (pl) |
1803 | pl->reattach (); |
1803 | pl->reattach (); |
1804 | |
1804 | |
1805 | for (maptile *m = first_map; m; m = m->next) |
1805 | for_all_maps (m) |
1806 | m->reattach (); |
1806 | m->reattach (); |
1807 | |
1807 | |
1808 | for (object *op = object::first; op; op = op->next) |
1808 | for (object *op = object::first; op; op = op->next) |
1809 | op->reattach (); |
1809 | op->reattach (); |
1810 | } |
1810 | } |