From ef2daa5060e251834e82df1ba3e081579ff84f2f Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 20 Feb 2007 22:09:21 +0000 Subject: (svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular struct array (with accessor) and implement new initialization method using cargo labels. --- src/newgrf.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/newgrf.cpp') diff --git a/src/newgrf.cpp b/src/newgrf.cpp index b75c25b4c..5a32dad49 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -31,6 +31,7 @@ #include "newgrf_sound.h" #include "newgrf_spritegroup.h" #include "helpers.hpp" +#include "cargotype.h" /* TTDPatch extended GRF format codec * (c) Petr Baudis 2004 (GPL'd) @@ -3519,6 +3520,9 @@ static void ResetNewGRFData(void) // Add engine type to engine data. This is needed for the refit precalculation. AddTypeToEngines(); + /* Set up the default cargo types */ + SetupCargoForClimate(_opt.landscape); + /* Reset misc GRF features and train list display variables */ _misc_grf_features = 0; _traininfo_vehicle_pitch = 0; -- cgit v1.2.3-54-g00ecf