Mercurial > hg > openttd
diff src/vehicle.cpp @ 8238:e9d8b0764f38 draft
(svn r11802) -Fix [FS#716]: do not crash trains when leaving depot to a very long track
-Codechange: use dedicated pathfinder for signal updating, resulting in better performance and possible future improvements
author | smatz <smatz@openttd.org> |
---|---|
date | Wed, 09 Jan 2008 23:00:59 +0000 (2008-01-09) |
parents | 5b61305fcdd4 |
children | a0c99d3eec0a |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -43,6 +43,7 @@ #include "date_func.h" #include "window_func.h" #include "vehicle_func.h" +#include "signal_func.h" #include "sound_func.h" #include "variables.h" #include "autoreplace_func.h" @@ -2175,7 +2176,7 @@ case VEH_TRAIN: InvalidateWindowClasses(WC_TRAINS_LIST); if (!IsFrontEngine(v)) v = v->First(); - UpdateSignalsOnSegment(v->tile, GetRailDepotDirection(v->tile)); + UpdateSignalsOnSegment(v->tile, INVALID_DIAGDIR); v->load_unload_time_rem = 0; break;