vehicle.c
changeset 4515 e4e8556f69a2
parent 4506 0d8fcc0a4e49
child 4527 b18634a31a4a
--- 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);