diff --git a/src/gui/game/GameController.cpp b/src/gui/game/GameController.cpp index 8a81bd538a..9d6c6de380 100644 --- a/src/gui/game/GameController.cpp +++ b/src/gui/game/GameController.cpp @@ -557,7 +557,7 @@ bool GameController::MouseDown(int x, int y, unsigned button) ui::Point point = PointTranslate(ui::Point(x, y)); x = point.X; y = point.Y; - if(ret && yGetPlacingSave()) if (gameModel->GetActiveTool(0)->GetIdentifier() != "DEFAULT_UI_SIGN" || button != BUTTON_LEFT) //If it's not a sign tool or you are right/middle clicking { sign * foundSign = GetSignAt(x, y); @@ -573,7 +573,7 @@ bool GameController::MouseUp(int x, int y, unsigned button) ui::Point point = PointTranslate(ui::Point(x, y)); x = point.X; y = point.Y; - if(ret && yGetPlacingSave()) { if (gameModel->GetActiveTool(0)->GetIdentifier() != "DEFAULT_UI_SIGN" || button != BUTTON_LEFT) //If it's not a sign tool or you are right/middle clicking { diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index dd62eb412d..acc0ffb58e 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -618,6 +618,11 @@ ui::Point GameView::GetMousePosition() return currentMouse; } +bool GameView::GetPlacingSave() +{ + return selectMode != SelectNone; +} + void GameView::NotifyActiveToolsChanged(GameModel * sender) { for(int i = 0; i < toolButtons.size(); i++) diff --git a/src/gui/game/GameView.h b/src/gui/game/GameView.h index ab3b714b63..26781c16aa 100644 --- a/src/gui/game/GameView.h +++ b/src/gui/game/GameView.h @@ -136,6 +136,7 @@ class GameView: public ui::Window bool GetHudEnable(); void SetDebugHUD(bool mode); bool GetDebugHUD(); + bool GetPlacingSave(); bool CtrlBehaviour(){ return ctrlBehaviour; } bool ShiftBehaviour(){ return shiftBehaviour; } bool AltBehaviour(){ return altBehaviour; }