1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-20 19:02:41 +01:00

Fix: Rail/road type conversion data is not populated on new game. (#13403)

This means that the rail/road type conversion that happens if NewGRFs are changed does not work the first time for a new game, only with a savegame.
This commit is contained in:
Peter Nelson
2025-01-29 21:45:16 +00:00
committed by GitHub
parent 402aaf3d11
commit bf6293a13f
9 changed files with 166 additions and 134 deletions

View File

@@ -37,6 +37,8 @@
#include "error.h"
#include "game/game.hpp"
#include "game/game_instance.hpp"
#include "newgrf_railtype.h"
#include "newgrf_roadtype.h"
#include "string_func.h"
#include "thread.h"
#include "tgp.h"
@@ -320,6 +322,8 @@ void GenerateWorld(GenWorldMode mode, uint size_x, uint size_y, bool reset_setti
/* Load the right landscape stuff, and the NewGRFs! */
GfxLoadSprites();
SetCurrentRailTypeLabelList();
SetCurrentRoadTypeLabelList();
InitializeBuildingCounts();
LoadStringWidthTable();