# HG changeset patch # User bjarni # Date 1157135736 0 # Node ID e4e8556f69a21c905c1624be529534817b659a60 # Parent 1de691434882bb967ef57c7fec3ef2834972478b (svn r6300) -Fix: FS#321 autoreplace / wagon removal turned out to be a failure to run the wagon remoral code if the player didn't have enough money to do the replace after the replace took place the cost animation failed to show in this condition as well Now the test is not run anymore after the replace took place diff -r 1de691434882 -r e4e8556f69a2 vehicle.c --- a/vehicle.c Fri Sep 01 14:02:00 2006 +0000 +++ b/vehicle.c Fri Sep 01 18:35:36 2006 +0000 @@ -1841,7 +1841,7 @@ } } while (w->type == VEH_Train && (w = GetNextVehicle(w)) != NULL); - if (p->money64 < (int32)(cost + p->engine_renew_money) || cost == 0) { + if (!(flags & DC_EXEC) && (p->money64 < (int32)(cost + p->engine_renew_money) || cost == 0)) { if (p->money64 < (int32)(cost + p->engine_renew_money) && ( _local_player == v->owner ) && cost != 0) { StringID message; SetDParam(0, v->unitnumber);