(svn r20) Feature: warning when a vehicle has invalid orders (celestar)

This commit is contained in:
dominik
2004-08-11 10:15:38 +00:00
parent a778b317f6
commit 6f8e7943c5
7 changed files with 102 additions and 0 deletions

View File

@@ -127,9 +127,13 @@ void OnNewDay_Ship(Vehicle *v)
AgeVehicle(v);
CheckIfShipNeedsService(v);
CheckOrders(v);
if (v->vehstatus & VS_STOPPED)
return;
cost = ship_vehicle_info(v->engine_type).running_cost * _price.ship_running / 364;
v->profit_this_year -= cost >> 8;