mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 10:45:16 +01:00
Actually fix RCT2 builds
This commit is contained in:
committed by
GitHub
parent
64f129c616
commit
079d223663
@@ -128,8 +128,9 @@ sint32 font_sprite_get_codepoint_width(uint16 fontSpriteBase, sint32 codepoint)
|
||||
{
|
||||
fontSpriteBase = (uint16)FONT_SPRITE_BASE_MEDIUM;
|
||||
}
|
||||
#ifdef NO_RCT2
|
||||
|
||||
sint32 spriteFontIdx = fontSpriteBase + font_sprite_get_codepoint_offset(codepoint);
|
||||
#ifdef NO_RCT2
|
||||
if (spriteFontIdx < 0 || spriteFontIdx >= countof(_spriteFontCharacterWidths))
|
||||
{
|
||||
log_warning("Invalid font index %u", spriteFontIdx);
|
||||
|
||||
Reference in New Issue
Block a user