Initial minimal working tracerestrict implementation.
This is a port of the tracerestrict/routing restrictions feature from TTDPatch. At present this implements if tests (train length only), and pathfinder deny and penalty actions. This requires the use of YAPF. Note that restrictions are only evaluated within the YAPF lookahead distance.
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
#include "viewport_sprite_sorter.h"
|
||||
|
||||
#include "linkgraph/linkgraphschedule.h"
|
||||
#include "tracerestrict.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
@@ -302,6 +303,7 @@ static void ShutdownGame()
|
||||
#endif
|
||||
|
||||
LinkGraphSchedule::Clear();
|
||||
ClearTraceRestrictMapping();
|
||||
PoolBase::Clean(PT_ALL);
|
||||
|
||||
/* No NewGRFs were loaded when it was still bootstrapping. */
|
||||
|
Reference in New Issue
Block a user