mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-06 22:37:22 +00:00
(svn r11637) -Fix: mark viewports dirty when removing visible vehicle chain
This commit is contained in:
parent
46724104fe
commit
4b22e57b33
@ -606,6 +606,11 @@ void DeleteVehicleChain(Vehicle *v)
|
||||
|
||||
do {
|
||||
Vehicle *u = v;
|
||||
if (!(v->vehstatus & VS_HIDDEN)) {
|
||||
/* sometimes, eg. for disaster vehicles, when company bankrupts, when removing crashed/flooded vehicles,
|
||||
* it may happen that vehicle chain is deleted when visible */
|
||||
MarkAllViewportsDirty(v->left_coord, v->top_coord, v->right_coord + 1, v->bottom_coord + 1);
|
||||
}
|
||||
v = v->Next();
|
||||
delete u;
|
||||
} while (v != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user