Changeset - r2591:49c24fb5ace1
[Not reviewed]
master
0 1 0
bjarni - 18 years ago 2005-11-03 20:19:15
bjarni@openttd.org
(svn r3128) -Fix: [autoreplace] fixed bug that made the player pay twice for autoreplacing and could end up with negative money
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
vehicle.c
Show inline comments
 
@@ -1616,7 +1616,7 @@ static void MaybeReplaceVehicle(Vehicle 
 
	Vehicle *w;
 
	const Player *p = GetPlayer(v->owner);
 
	byte flags = 0;
 
	int32 cost = 0, temp_cost = 0;
 
	int32 cost, temp_cost = 0;
 
	bool stopped = false;
 

	
 
	_current_player = v->owner;
 
@@ -1632,6 +1632,7 @@ static void MaybeReplaceVehicle(Vehicle 
 
	}
 

	
 
	while (true) {
 
		cost = 0;
 
		w = v;
 
		do {
 
			// check if the vehicle should be replaced
0 comments (0 inline, 0 general)