Port of the programmable signals patch to recent trunk

Also add some additional changes from the SpringPP patch,
and make some other minor changes/fixes.
This commit is contained in:
patch-import
2014-01-14 20:32:07 +00:00
committed by Jonathan G Rennison
parent 0b09a7ac61
commit fc0efe599e
29 changed files with 2901 additions and 111 deletions

View File

@@ -63,6 +63,7 @@
#include "subsidy_func.h"
#include "gfx_layout.h"
#include "viewport_sprite_sorter.h"
#include "programmable_signals.h"
#include "linkgraph/linkgraphschedule.h"
@@ -304,6 +305,9 @@ static void ShutdownGame()
LinkGraphSchedule::Clear();
PoolBase::Clean(PT_ALL);
FreeSignalPrograms();
FreeSignalDependencies();
/* No NewGRFs were loaded when it was still bootstrapping. */
if (_game_mode != GM_BOOTSTRAP) ResetNewGRFData();