1
0
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:
Michał Janiszewski
2017-12-02 19:46:02 +01:00
committed by GitHub
parent 64f129c616
commit 079d223663

View File

@@ -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);