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>2009-07-16 18:33:30 +0000
committerStijn Buys <ingar@osirion.org>2009-07-16 18:33:30 +0000
commit1b8ceba3a173ff59939042713cd07a65e83193f1 (patch)
tree9a975da4ccaa60fb7737a80ad32f471a4124a031
parent7e15b99c01616999496155fe5d2ce89d7608932b (diff)
check if the game module is running before executing a frame
-rw-r--r--src/core/gameserver.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc
index b222524..096d8bf 100644
--- a/src/core/gameserver.cc
+++ b/src/core/gameserver.cc
@@ -504,7 +504,9 @@ void GameServer::frame(unsigned long timestamp)
// run a frame on the module
if (server_module) {
- server_module->frame(elapsed);
+ if (server_module->running())
+ server_module->frame(elapsed);
+
if (server_module->error()) {
abort();
return;