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:
committed by
Michael Steenbeek
parent
da1f618732
commit
3409da9aa1
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
@@ -163,7 +163,6 @@ bool rct2_init()
|
||||
if (!gfx_load_g2()) {
|
||||
return false;
|
||||
}
|
||||
gfx_load_csg();
|
||||
|
||||
font_sprite_initialise_characters();
|
||||
if (!gOpenRCT2Headless) {
|
||||
|
||||
Reference in New Issue
Block a user