diff options
Diffstat (limited to 'src/gui/game/GameModel.cpp')
| -rw-r--r-- | src/gui/game/GameModel.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/gui/game/GameModel.cpp b/src/gui/game/GameModel.cpp index efb7d78..4378050 100644 --- a/src/gui/game/GameModel.cpp +++ b/src/gui/game/GameModel.cpp @@ -799,13 +799,16 @@ bool GameModel::GetPaused() void GameModel::SetDecoration(bool decorationState) { - ren->decorations_enable = decorationState?1:0; - notifyDecorationChanged(); - UpdateQuickOptions(); - if (decorationState) - SetInfoTip("Decorations Layer: On"); - else - SetInfoTip("Decorations Layer: Off"); + if (ren->decorations_enable != decorationState) + { + ren->decorations_enable = decorationState?1:0; + notifyDecorationChanged(); + UpdateQuickOptions(); + if (decorationState) + SetInfoTip("Decorations Layer: On"); + else + SetInfoTip("Decorations Layer: Off"); + } } bool GameModel::GetDecoration() |
