Pay all cargo payment incomes when cargo finally delivered

This commit is contained in:
Jonathan G Rennison
2018-01-26 18:28:57 +00:00
parent ea3948aa2d
commit 9000d74f3c
8 changed files with 191 additions and 12 deletions

View File

@@ -63,6 +63,7 @@
#include "subsidy_func.h"
#include "gfx_layout.h"
#include "viewport_sprite_sorter.h"
#include "cargopacket.h"
#include "linkgraph/linkgraphschedule.h"
@@ -334,6 +335,7 @@ static void ShutdownGame()
#endif
LinkGraphSchedule::Clear();
ClearCargoPacketDeferredPayments();
PoolBase::Clean(PT_ALL);
/* No NewGRFs were loaded when it was still bootstrapping. */