diff options
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 61723b7fb..de4a9c76f 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3787,6 +3787,7 @@ void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage) } } +void InitDepotWindowBlockSizes(void); void LoadNewGRF(uint load_index, uint file_index) { @@ -3822,6 +3823,9 @@ void LoadNewGRF(uint load_index, uint file_index) // Pre-calculate all refit masks after loading GRF files CalculateRefitMasks(); + + /* Set the block size in the depot windows based on vehicle sprite sizes */ + InitDepotWindowBlockSizes(); } |