summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-09-16 13:44:12 +0000
committerDarkvater <Darkvater@openttd.org>2006-09-16 13:44:12 +0000
commite493bd60792d118925b97192a4b5170e330cfb6f (patch)
tree0b207d9b8f8ef24d531aba86a2b7d14f953c5bc4
parent552570f9e6ed3982c1b8d5bd819eb06eb4c5df53 (diff)
downloadopenttd-e493bd60792d118925b97192a4b5170e330cfb6f.tar.xz
(svn r6463) -Fix (r6462): Reset the string width to zero on every new line of course...
-rw-r--r--gfx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gfx.c b/gfx.c
index c706719de..30ca3cb12 100644
--- a/gfx.c
+++ b/gfx.c
@@ -568,10 +568,8 @@ BoundingRect GetStringBoundingBox(const char *str)
case ASCII_BIGFONT: size = FS_LARGE; break;
case ASCII_NL:
br.height += GetCharacterHeight(size);
- if (br.width > max_width) {
- max_width = br.width;
- br.width = 0;
- }
+ if (br.width > max_width) max_width = br.width;
+ br.width = 0;
break;
}
}