Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-11 09:37:23 +0000
committerStijn Buys <ingar@osirion.org>2008-10-11 09:37:23 +0000
commit0d831968949b1119db48530a86c2d1651c6cbfc6 (patch)
tree925e02481149fa8ac227017af74818176b166a41 /src/core/gameserver.cc
parent02fcd22d8cde355aa898a8c6bb4773d9434b8e9a (diff)
zonechange events, menu previous command
Diffstat (limited to 'src/core/gameserver.cc')
-rw-r--r--src/core/gameserver.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc
index b6767ad..46c3624 100644
--- a/src/core/gameserver.cc
+++ b/src/core/gameserver.cc
@@ -622,7 +622,6 @@ void GameServer::frame(float seconds)
if (server_network) {
// send network updates
server_network->frame(server_time, server_previoustime);
-
}
// mark all entities as updated
@@ -639,6 +638,11 @@ void GameServer::frame(float seconds)
}
}
+ if (localplayer()->zonechange()) {
+ application()->notify_zonechange();
+ localplayer()->player_zonechange = false;
+ }
+
if (!Cvar::sv_dedicated->value()) {
update_clientstate(0);
}