summaryrefslogtreecommitdiff
path: root/viewport.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-29 08:14:09 +0000
committertron <tron@openttd.org>2005-06-29 08:14:09 +0000
commit6e72d514b7b353d92379855aa44907d9399c83a7 (patch)
treedb0fe756f63527dcd86fb789106434e9aca2d4ed /viewport.c
parenta45b6278d101b63921cfe20987f938307febb5ef (diff)
downloadopenttd-6e72d514b7b353d92379855aa44907d9399c83a7.tar.xz
(svn r2496) -Fix: [1179933] When toggling build/remove via keyboard the selection wasn't correctly redrawn
Diffstat (limited to 'viewport.c')
-rw-r--r--viewport.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/viewport.c b/viewport.c
index 64b171f2a..91cb9eadd 100644
--- a/viewport.c
+++ b/viewport.c
@@ -1486,6 +1486,13 @@ static void SetSelectionTilesDirty(void)
}
+void SetSelectionRed(bool b)
+{
+ _thd.make_square_red = b;
+ SetSelectionTilesDirty();
+}
+
+
static bool CheckClickOnTown(ViewPort *vp, int x, int y)
{
Town *t;