town_cmd.c
changeset 4609 954fe701062f
parent 4559 aa0c13e39840
child 4850 93095755db8c
--- a/town_cmd.c	Sat Sep 16 13:02:35 2006 +0000
+++ b/town_cmd.c	Sat Sep 16 13:20:14 2006 +0000
@@ -889,7 +889,7 @@
 		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