From 1b8ceba3a173ff59939042713cd07a65e83193f1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 16 Jul 2009 18:33:30 +0000 Subject: check if the game module is running before executing a frame --- src/core/gameserver.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3