summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-02-02 11:55:43 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-02-02 11:55:43 (GMT)
commit6641f1d54196a2193b258d3e76e2cca6ad3258b1 (patch)
tree9d7c812af9c5f3def4d5e73dc49d6e85add27fd9 /src/game/GameController.cpp
parentf5dd32b284fd311dd58070b6f431ec535fa93387 (diff)
downloadpowder-6641f1d54196a2193b258d3e76e2cca6ad3258b1.zip
powder-6641f1d54196a2193b258d3e76e2cca6ad3258b1.tar.gz
Frame stepping
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index a4e0ccc..5c8ed6f 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -343,6 +343,12 @@ void GameController::OpenSaveWindow()
}
}
+void GameController::FrameStep()
+{
+ gameModel->FrameStep(1);
+ gameModel->SetPaused(true);
+}
+
void GameController::Vote(int direction)
{
if(gameModel->GetSave() && gameModel->GetUser().ID && gameModel->GetSave()->GetID() && gameModel->GetSave()->GetVote()==0)