(svn r21542) -Codechange (r14789): Handling a click at a tile once is enough.

This commit is contained in:
alberth 2010-12-20 09:34:30 +00:00
parent 79681051c8
commit 50faf52cfc
1 changed files with 2 additions and 2 deletions

View File

@ -1911,7 +1911,7 @@ bool HandleViewportClicked(const ViewPort *vp, int x, int y)
if (CheckClickOnTown(vp, x, y)) return true;
if (CheckClickOnStation(vp, x, y)) return true;
if (CheckClickOnSign(vp, x, y)) return true;
CheckClickOnLandscape(vp, x, y);
bool result = CheckClickOnLandscape(vp, x, y);
if (v != NULL) {
DEBUG(misc, 2, "Vehicle %d (index %d) at %p", v->unitnumber, v->index, v);
@ -1925,7 +1925,7 @@ bool HandleViewportClicked(const ViewPort *vp, int x, int y)
}
return true;
}
return CheckClickOnLandscape(vp, x, y);
return result;
}