mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-03 04:05:49 +01:00
Fixes #171
This commit is contained in:
@@ -1374,7 +1374,7 @@ int gfx_clip_string(char* buffer, int width)
|
||||
if (*curr_char < 0x20) {
|
||||
switch(*curr_char) {
|
||||
case 1:
|
||||
width = *curr_char;
|
||||
clipped_width = *curr_char;
|
||||
curr_char++;
|
||||
continue;
|
||||
case 2:
|
||||
@@ -1414,7 +1414,7 @@ int gfx_clip_string(char* buffer, int width)
|
||||
|
||||
clipped_width += RCT2_ADDRESS(0x0141E9E8, uint8)[*current_font_sprite_base + (*curr_char-0x20)];
|
||||
|
||||
if (clipped_width >= width) {
|
||||
if (clipped_width > width) {
|
||||
*((uint32*)last_char) = '...';
|
||||
clipped_width = width;
|
||||
return clipped_width;
|
||||
|
||||
Reference in New Issue
Block a user