summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
Diffstat (limited to 'players.c')
-rw-r--r--players.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/players.c b/players.c
index 326a160c7..1aed34fb1 100644
--- a/players.c
+++ b/players.c
@@ -344,7 +344,7 @@ verify_name:;
}
GetString(buffer, str);
- if (strlen(buffer) >= 32 || GetStringWidth(buffer) >= 150)
+ if (strlen(buffer) >= 32 || GetStringBoundingBox(buffer).width >= 150)
goto bad_town_name;
set_name:;
@@ -451,7 +451,7 @@ restart:;
SetDParam(0, p->president_name_2);
GetString(buffer, p->president_name_1);
- if (strlen(buffer) >= 32 || GetStringWidth(buffer) >= 94)
+ if (strlen(buffer) >= 32 || GetStringBoundingBox(buffer).width >= 94)
continue;
FOR_ALL_PLAYERS(pp) {