Allow editing link signs. Fixes #182
This commit is contained in:
parent
3e0fcc904e
commit
03e40d53bc
@ -525,9 +525,9 @@ bool GameController::MouseDown(int x, int y, unsigned button)
|
|||||||
bool GameController::MouseUp(int x, int y, unsigned button)
|
bool GameController::MouseUp(int x, int y, unsigned button)
|
||||||
{
|
{
|
||||||
bool ret = commandInterface->OnMouseUp(x, y, 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();
|
Simulation * sim = gameModel->GetSimulation();
|
||||||
for (std::vector<sign>::iterator iter = sim->signs.begin(), end = sim->signs.end(); iter != end; ++iter)
|
for (std::vector<sign>::iterator iter = sim->signs.begin(), end = sim->signs.end(); iter != end; ++iter)
|
||||||
|
Loading…
Reference in New Issue
Block a user