# HG changeset patch # User bjarni # Date 1131052958 0 # Node ID bec1bf2313df63b8b5ef34f66338b5e8691cec57 # Parent 76a053785b35243568da4227f63a6a818d86b39e (svn r3129) -Fix: [autoreplace] fixed bug that made the player pay twice for autoreplacing and could end up with negative money this is not the same bug as in rev 3128, which means you actually paid 3 times. Now it pays correctly diff -r 76a053785b35 -r bec1bf2313df vehicle.c --- a/vehicle.c Thu Nov 03 20:19:15 2005 +0000 +++ b/vehicle.c Thu Nov 03 21:22:38 2005 +0000 @@ -1681,6 +1681,7 @@ } if (stopped) v->vehstatus &= ~VS_STOPPED; //we start the vehicle again + _current_player = OWNER_NONE; return; } @@ -1691,8 +1692,6 @@ flags |= DC_EXEC; } - SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES); - SubtractMoneyFromPlayer(cost); if (IsLocalPlayer()) ShowCostOrIncomeAnimation(v->x_pos, v->y_pos, v->z_pos, cost); if (stopped)