(svn r829) Fix small glitch: Immediately redraw the tile selection square when using the hotkey to toggle removal
authortron
Fri, 26 Nov 2004 21:52:18 +0000
changeset 514 2de07a146b19
parent 513 a6eaa0d97d8d
child 515 40679734a6b7
(svn r829) Fix small glitch: Immediately redraw the tile selection square when using the hotkey to toggle removal
rail_gui.c
road_gui.c
--- a/rail_gui.c	Fri Nov 26 21:14:42 2004 +0000
+++ b/rail_gui.c	Fri Nov 26 21:52:18 2004 +0000
@@ -290,6 +290,7 @@
 	SndPlayFx(0x13);
 
 	_thd.make_square_red = !!((w->click_state ^= (1 << 16)) & (1<<16));
+	MarkTileDirty(_thd.pos.x, _thd.pos.y);
 	_remove_button_clicked = (w->click_state & (1 << 16)) != 0;
 
 	// handle station builder
--- a/road_gui.c	Fri Nov 26 21:14:42 2004 +0000
+++ b/road_gui.c	Fri Nov 26 21:52:18 2004 +0000
@@ -161,6 +161,7 @@
 	SetWindowDirty(w);
 	SndPlayFx(0x13);
 	_thd.make_square_red = !!((w->click_state ^= (1 << 12)) & (1<<12));
+	MarkTileDirty(_thd.pos.x, _thd.pos.y);
 }
 
 static void BuildRoadClick_Purchase(Window *w)