diff options
| author | jacob1 <jfu614@gmail.com> | 2012-10-21 00:06:38 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-10-26 14:16:05 (GMT) |
| commit | e773abdcc89c1f7cc09cce39c6d4b30eaa6fd69e (patch) | |
| tree | b55cf02aa43d5e0e789716893f8f0883ab7f41c7 /src/game/GameController.cpp | |
| parent | 3ad7cf4539ee1e4cd7b700200722cfd39c9006bc (diff) | |
| download | powder-e773abdcc89c1f7cc09cce39c6d4b30eaa6fd69e.zip powder-e773abdcc89c1f7cc09cce39c6d4b30eaa6fd69e.tar.gz | |
Ctrl + G gravity grid toggle
Diffstat (limited to 'src/game/GameController.cpp')
| -rw-r--r-- | src/game/GameController.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp index dfe3a94..07ccfe9 100644 --- a/src/game/GameController.cpp +++ b/src/game/GameController.cpp @@ -860,6 +860,12 @@ void GameController::SetDecoration() gameModel->SetDecoration(!gameModel->GetDecoration()); } +void GameController::ShowGravityGrid() +{ + gameModel->ShowGravityGrid(!gameModel->GetGravityGrid()); + gameModel->UpdateQuickOptions(); +} + void GameController::SetActiveColourPreset(int preset) { gameModel->SetActiveColourPreset(preset); |
