1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Only load csg1 if necessary

This commit is contained in:
Martin Müller
2017-04-04 15:27:22 +02:00
committed by Michael Steenbeek
parent da1f618732
commit 3409da9aa1
2 changed files with 5 additions and 1 deletions

View File

@@ -629,6 +629,11 @@ extern "C"
{
return &_g2.elements[image_id - SPR_G2_BEGIN];
}
if (_csg.data == nullptr)
{
gfx_load_csg();
}
return &_csg.elements[image_id - SPR_CSG_BEGIN];
}

View File

@@ -163,7 +163,6 @@ bool rct2_init()
if (!gfx_load_g2()) {
return false;
}
gfx_load_csg();
font_sprite_initialise_characters();
if (!gOpenRCT2Headless) {