mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r829) Fix small glitch: Immediately redraw the tile selection square when using the hotkey to toggle removal
This commit is contained in:
parent
08e16d966a
commit
908adfc191
|
@ -290,6 +290,7 @@ static void BuildRailClick_Remove(Window *w)
|
||||||
SndPlayFx(0x13);
|
SndPlayFx(0x13);
|
||||||
|
|
||||||
_thd.make_square_red = !!((w->click_state ^= (1 << 16)) & (1<<16));
|
_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;
|
_remove_button_clicked = (w->click_state & (1 << 16)) != 0;
|
||||||
|
|
||||||
// handle station builder
|
// handle station builder
|
||||||
|
|
|
@ -161,6 +161,7 @@ static void BuildRoadClick_Remove(Window *w)
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
SndPlayFx(0x13);
|
SndPlayFx(0x13);
|
||||||
_thd.make_square_red = !!((w->click_state ^= (1 << 12)) & (1<<12));
|
_thd.make_square_red = !!((w->click_state ^= (1 << 12)) & (1<<12));
|
||||||
|
MarkTileDirty(_thd.pos.x, _thd.pos.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void BuildRoadClick_Purchase(Window *w)
|
static void BuildRoadClick_Purchase(Window *w)
|
||||||
|
|
Loading…
Reference in New Issue