(svn r829) Fix small glitch: Immediately redraw the tile selection square when using the hotkey to toggle removal

This commit is contained in:
tron 2004-11-26 21:52:18 +00:00
parent 08e16d966a
commit 908adfc191
2 changed files with 2 additions and 0 deletions

View File

@ -290,6 +290,7 @@ static void BuildRailClick_Remove(Window *w)
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

View File

@ -161,6 +161,7 @@ static void BuildRoadClick_Remove(Window *w)
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)