Changeset - r20657:25c8bad3ec3c
[Not reviewed]
master
0 1 0
frosch - 11 years ago 2013-08-06 17:31:16
frosch@openttd.org
(svn r25695) -Fix [FS#5700] (r24882, r25648): Vehicle::MarkDirty must be called for the front engine.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -853,13 +853,13 @@ static void RunVehicleDayProc()
 
				if (HasBit(callback, 0)) {
 
					TriggerVehicle(v, VEHICLE_TRIGGER_CALLBACK_32); // Trigger vehicle trigger 10
 
				}
 

	
 
				/* 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);
 
			}
 
		}
 

	
 
		/* This is called once per day for each vehicle, but not in the first tick of the day */
0 comments (0 inline, 0 general)