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
commitf18346732297370a5ea0bcfbaf8f7b0cc0ad3b54 (patch)
treedb0fe756f63527dcd86fb789106434e9aca2d4ed /viewport.c
parent35e614b43632c09224e0f86d12e1f1a5ef43ef12 (diff)
downloadopenttd-f18346732297370a5ea0bcfbaf8f7b0cc0ad3b54.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;