summaryrefslogtreecommitdiff
path: root/gfx.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-14 08:09:57 +0000
committertron <tron@openttd.org>2005-11-14 08:09:57 +0000
commit833032adc09ce95c68d4a4b412221a0b3f88e670 (patch)
tree80b15078ff5a1c09815ccb23f4c9e7629774dae4 /gfx.c
parent357aba747578ecd3b8cc1a29bc740634211ada37 (diff)
downloadopenttd-833032adc09ce95c68d4a4b412221a0b3f88e670.tar.xz
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
Diffstat (limited to 'gfx.c')
-rw-r--r--gfx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx.c b/gfx.c
index d3c6e7015..2e3079b62 100644
--- a/gfx.c
+++ b/gfx.c
@@ -441,7 +441,7 @@ void DrawStringMultiCenter(int x, int y, StringID str, int maxw)
GetString(buffer, str);
tmp = FormatStringLinebreaks(buffer, maxw);
- num = (uint16)tmp;
+ num = GB(tmp, 0, 16);
switch (GB(tmp, 16, 16)) {
case 0: mt = 10; break;
@@ -487,7 +487,7 @@ void DrawStringMultiLine(int x, int y, StringID str, int maxw)
GetString(buffer, str);
tmp = FormatStringLinebreaks(buffer, maxw);
- num = (uint16)tmp;
+ num = GB(tmp, 0, 16);
switch (GB(tmp, 16, 16)) {
case 0: mt = 10; break;