summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-13 10:12:39 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-13 10:12:39 (GMT)
commit03e40d53bc8bdfc23ec9dfd86c516df3cf26024d (patch)
tree976599257d5a94c1e4667c6223496010f69f18e7 /src/game/GameController.cpp
parent3e0fcc904e48bc36c1fd51f24638a1227bec860a (diff)
downloadpowder-03e40d53bc8bdfc23ec9dfd86c516df3cf26024d.zip
powder-03e40d53bc8bdfc23ec9dfd86c516df3cf26024d.tar.gz
Allow editing link signs. Fixes #182
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index a507b40..d2580b0 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -525,9 +525,9 @@ 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 && y<YRES && x<XRES)
+ if(ret && button == BUTTON_LEFT && y<YRES && x<XRES)
{
- if (true)//If it's not a sign tool
+ if (gameModel->GetActiveTool(0)->GetIdentifier() != "DEFAULT_UI_SIGN")//If it's not a sign tool
{
Simulation * sim = gameModel->GetSimulation();
for (std::vector<sign>::iterator iter = sim->signs.begin(), end = sim->signs.end(); iter != end; ++iter)