summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-09-16 13:20:14 +0000
committerDarkvater <darkvater@openttd.org>2006-09-16 13:20:14 +0000
commit3ccc87b376a5560e3933263dc0e684ddf1136236 (patch)
treecfe40a58aa6ed11051036a76e69dd295f0b05d31 /town_cmd.c
parentba3ae8e43d19e4553a8c753c66c6a199b28cc1e1 (diff)
downloadopenttd-3ccc87b376a5560e3933263dc0e684ddf1136236.tar.xz
(svn r6462) -Codechange: Have GetStringWidth() return width as well as the height bounding
box of the string. Therefore rename the function to GetStringBoundingRect() and have it return a BoundingRect type of width/height
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/town_cmd.c b/town_cmd.c
index 54287c284..f19383851 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -889,7 +889,7 @@ restart:
GetString(buf1, townnametype);
// Check size and width
- if (strlen(buf1) >= 31 || GetStringWidth(buf1) > 130) continue;
+ if (strlen(buf1) >= 31 || GetStringBoundingBox(buf1).width > 130) continue;
FOR_ALL_TOWNS(t2) {
// We can't just compare the numbers since