* game.c: Game file access
*
* Known contributors to this file:
- * Markus Armbruster, 2007-2008
+ * Markus Armbruster, 2007-2009
*/
/*
#include "server.h"
/*
- * Disable updates
+ * Enable / disable updates
*/
void
game_ctrl_update(int enable)
return getgamep()->game_upd_disable;
}
+/*
+ * Enable / disable play
+ */
+void
+game_ctrl_play(int enable)
+{
+ struct gamestr *game = getgamep();
+
+ game->game_down = !enable;
+ putgame();
+}
+
+/*
+ * Is playing enabled?
+ */
+int
+game_play_disabled(void)
+{
+ return getgamep()->game_down;
+}
+
/*
* Notice that a player broke sanctuary.
* This starts the Empire clock if it hasn't been started yet.