From 14ea3d9d037175d4d5326ac9c83fe69ddcd0d9c4 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 8 Oct 2012 19:58:08 +0000 Subject: added zone flags, renamed Entity::flag_is_set() to Entity::has_flag() --- src/core/gameserver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/gameserver.cc') diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc index f9cc061..579f65d 100644 --- a/src/core/gameserver.cc +++ b/src/core/gameserver.cc @@ -641,7 +641,7 @@ void GameServer::frame(const unsigned long timestamp) for (Entity::Registry::iterator it = Entity::registry().begin(); it != Entity::registry().end(); it++) { Entity *entity = (*it).second; Zone *zone = entity->zone(); - if (zone && entity->flag_is_set(Entity::KeepAlive)) { + if (zone && entity->has_flag(Entity::KeepAlive)) { if (zone->keepalive_run() && zone->keepalive_box().inside(entity->location())) { entity->set_keepalive(this->timestamp()); -- cgit v1.2.3