From 03e40d53bc8bdfc23ec9dfd86c516df3cf26024d Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Thu, 13 Sep 2012 11:12:39 +0100 Subject: Allow editing link signs. Fixes #182 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 && yGetActiveTool(0)->GetIdentifier() != "DEFAULT_UI_SIGN")//If it's not a sign tool { Simulation * sim = gameModel->GetSimulation(); for (std::vector::iterator iter = sim->signs.begin(), end = sim->signs.end(); iter != end; ++iter) -- cgit v0.9.2-21-gd62e