Changeset - r829:c20991eb0b98
[Not reviewed]
master
0 1 0
truelight - 19 years ago 2004-12-30 09:46:40
truelight@openttd.org
(svn r1300) -Fix: The cost for an autorenew was not always send to the right player ;)
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
vehicle.c
Show inline comments
 
@@ -1481,6 +1481,8 @@ void MaybeRenewVehicle(Vehicle *v)
 
	if (!_patches.autorenew || v->age - v->max_age < (_patches.autorenew_months * 30))
 
		return;
 

	
 
	_current_player = v->owner;
 

	
 
	/* Now renew the vehicle */
 
	DoCommandP(v->tile, v->index, v->engine_type, NULL, CMD_RENEW_VEHICLE);
 
}
0 comments (0 inline, 0 general)