diff options
author | tron <tron@openttd.org> | 2005-11-14 08:09:57 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-14 08:09:57 +0000 |
commit | 833032adc09ce95c68d4a4b412221a0b3f88e670 (patch) | |
tree | 80b15078ff5a1c09815ccb23f4c9e7629774dae4 /gfx.c | |
parent | 357aba747578ecd3b8cc1a29bc740634211ada37 (diff) | |
download | openttd-833032adc09ce95c68d4a4b412221a0b3f88e670.tar.xz |
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
Diffstat (limited to 'gfx.c')
-rw-r--r-- | gfx.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |