From eb9b3f6bdf5bf1798f669288c407d4e0c316e090 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 16 Nov 2012 19:22:34 -0500 Subject: [PATCH] fix link signs ignoring the zoom window, allow right clicking link signs to use them while sign tool selected --- src/game/GameController.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp index 0cff7d2c9..18b93d6e1 100644 --- a/src/game/GameController.cpp +++ b/src/game/GameController.cpp @@ -532,9 +532,12 @@ bool GameController::MouseDown(int x, int y, unsigned button) bool GameController::MouseUp(int x, int y, unsigned button) { bool ret = commandInterface->OnMouseUp(x, y, button); - if(ret && button == BUTTON_LEFT && yGetActiveTool(0)->GetIdentifier() != "DEFAULT_UI_SIGN")//If it's not a sign tool + if (gameModel->GetActiveTool(0)->GetIdentifier() != "DEFAULT_UI_SIGN" || button != BUTTON_LEFT) //If it's not a sign tool or you are right/middle clicking { Simulation * sim = gameModel->GetSimulation(); for (std::vector::iterator iter = sim->signs.begin(), end = sim->signs.end(); iter != end; ++iter)