forked from mirror/OpenTTD
(svn r14835) -Change: apply the 'warn if train's income is negative' setting to other vehicle types, too
This commit is contained in:
@@ -731,20 +731,6 @@ void Ship::Tick()
|
||||
ShipController(this);
|
||||
}
|
||||
|
||||
|
||||
void ShipsYearlyLoop()
|
||||
{
|
||||
Vehicle *v;
|
||||
|
||||
FOR_ALL_VEHICLES(v) {
|
||||
if (v->type == VEH_SHIP) {
|
||||
v->profit_last_year = v->profit_this_year;
|
||||
v->profit_this_year = 0;
|
||||
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Build a ship.
|
||||
* @param tile tile of depot where ship is built
|
||||
* @param flags type of operation
|
||||
|
Reference in New Issue
Block a user