Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-11-03 23:33:56 +0000
committerStijn Buys <ingar@osirion.org>2013-11-03 23:33:56 +0000
commitfb18eff66171e855e378575b534683e4fb9c20f5 (patch)
tree6ee59a49aeaea2ae5c48c7de72a2be86194aff3a /src
parent596b210a358b63a7960f0d9caa27454fb511a6a4 (diff)
Added gameserver comments.
Diffstat (limited to 'src')
-rw-r--r--src/core/gameserver.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc
index 1e2c9e9..c27f5d4 100644
--- a/src/core/gameserver.cc
+++ b/src/core/gameserver.cc
@@ -619,6 +619,7 @@ void GameServer::frame(const unsigned long timestamp)
for (Zone::Registry::iterator zit = Zone::registry().begin(); zit != Zone::registry().end(); ++zit) {
Zone *zone= (*zit).second;
+ // Note: zone->keepalive_run() is set to true by EntityControlable::frame()
zone->set_keepalive_run(false);
}
@@ -644,6 +645,7 @@ void GameServer::frame(const unsigned long timestamp)
Zone *zone = entity->zone();
if (zone && entity->has_flag(Entity::KeepAlive)) {
+ // reset timeout counter if the zone is active
if (zone->keepalive_run() && zone->keepalive_box().inside(entity->location())) {
entity->set_keepalive(this->timestamp());
}