diff options
Diffstat (limited to 'src/core/gameserver.cc')
-rw-r--r-- | src/core/gameserver.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc index 717ce87..81df14b 100644 --- a/src/core/gameserver.cc +++ b/src/core/gameserver.cc @@ -552,15 +552,14 @@ void GameServer::frame(float seconds) return; } } - if (server_network) { - // send network updates server_network->frame(server_time, server_previoustime); } + // mark all entities as udpated for (Entity::Registry::iterator it=Entity::registry().begin(); it != Entity::registry().end(); ) { Entity *entity = (*it).second; @@ -569,8 +568,7 @@ void GameServer::frame(float seconds) (*it).second = entity = 0; Entity::registry().erase(it++); } else { - entity->entity_created = false; - entity->entity_dirty = false; + entity->clear_updates(); ++it; } } |