Mercurial > hg > openttd
diff src/roadveh_cmd.cpp @ 10577:4436af164dbd draft
(svn r14835) -Change: apply the 'warn if train's income is negative' setting to other vehicle types, too
author | smatz <smatz@openttd.org> |
---|---|
date | Sun, 04 Jan 2009 18:34:23 +0000 (2009-01-04) |
parents | 45ca88a8de7d |
children | 0981f4793872 |
line wrap: on
line diff
--- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1981,20 +1981,6 @@ InvalidateWindowClasses(WC_ROADVEH_LIST); } - -void RoadVehiclesYearlyLoop() -{ - Vehicle *v; - - FOR_ALL_VEHICLES(v) { - if (v->type == VEH_ROAD) { - v->profit_last_year = v->profit_this_year; - v->profit_this_year = 0; - InvalidateWindow(WC_VEHICLE_DETAILS, v->index); - } - } -} - /** Refit a road vehicle to the specified cargo type * @param tile unused * @param flags operation to perform