diff options
| author | Simon 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) |
| commit | 03e40d53bc8bdfc23ec9dfd86c516df3cf26024d (patch) | |
| tree | 976599257d5a94c1e4667c6223496010f69f18e7 | |
| parent | 3e0fcc904e48bc36c1fd51f24638a1227bec860a (diff) | |
| download | powder-03e40d53bc8bdfc23ec9dfd86c516df3cf26024d.zip powder-03e40d53bc8bdfc23ec9dfd86c516df3cf26024d.tar.gz | |
Allow editing link signs. Fixes #182
| -rw-r--r-- | src/game/GameController.cpp | 4 |
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) |
