mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r25695) -Fix [FS#5700] (r24882, r25648): Vehicle::MarkDirty must be called for the front engine.
This commit is contained in:
parent
4142cde953
commit
bab22f7c1b
@ -856,7 +856,7 @@ static void RunVehicleDayProc()
|
||||
|
||||
/* After a vehicle trigger, the graphics and properties of the vehicle could change.
|
||||
* Note: MarkDirty also invalidates the palette, which is the meaning of bit 1. So, nothing special there. */
|
||||
if (callback != 0) v->MarkDirty();
|
||||
if (callback != 0) v->First()->MarkDirty();
|
||||
|
||||
if (callback & ~3) ErrorUnknownCallbackResult(v->GetGRFID(), CBID_VEHICLE_32DAY_CALLBACK, callback);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user