(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
This commit is contained in:
@@ -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 @@ void VehicleEnterDepot(Vehicle *v)
|
||||
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;
|
||||
|
||||
|
Reference in New Issue
Block a user