diff options
author | bjarni <bjarni@openttd.org> | 2005-11-03 21:22:38 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-11-03 21:22:38 +0000 |
commit | e40dea16e91d18b18a90919a0cbb48e462cd5e57 (patch) | |
tree | 6ee6262144c662ff977c68bb81b3cea042ad9d29 | |
parent | 6af8bd605eaadc001fe82c7d804796058871d785 (diff) | |
download | openttd-e40dea16e91d18b18a90919a0cbb48e462cd5e57.tar.xz |
(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
-rw-r--r-- | vehicle.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1681,6 +1681,7 @@ static void MaybeReplaceVehicle(Vehicle *v) } if (stopped) v->vehstatus &= ~VS_STOPPED; //we start the vehicle again + _current_player = OWNER_NONE; return; } @@ -1691,8 +1692,6 @@ static void MaybeReplaceVehicle(Vehicle *v) 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) |