summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-01-04 18:34:23 +0000
committersmatz <smatz@openttd.org>2009-01-04 18:34:23 +0000
commitec7ebf2170ff80ab1bd7885d65395a1565128f0f (patch)
tree24e7c278186d5ebd3bd6bce940783e6debc48253 /src/roadveh_cmd.cpp
parent87b71b387214668204693cd0e19d0820836efe80 (diff)
downloadopenttd-ec7ebf2170ff80ab1bd7885d65395a1565128f0f.tar.xz
(svn r14835) -Change: apply the 'warn if train's income is negative' setting to other vehicle types, too
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 2c1db2d1c..bc5414f0d 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1981,20 +1981,6 @@ void RoadVehicle::OnNewDay()
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