summaryrefslogtreecommitdiff
path: root/gfx.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-12-14 06:28:48 +0000
committertron <tron@openttd.org>2005-12-14 06:28:48 +0000
commitbf98086de80da38fb0256f3f076d5069f6b4e997 (patch)
tree7efaf8780f89086574128eced521726184ff5f5b /gfx.c
parent23bfc03054c52065006a73d8cebdeee068784892 (diff)
downloadopenttd-bf98086de80da38fb0256f3f076d5069f6b4e997.tar.xz
(svn r3298) Remove unused and write-only variables
Diffstat (limited to 'gfx.c')
-rw-r--r--gfx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gfx.c b/gfx.c
index cb6650cb7..7cf3f2dbb 100644
--- a/gfx.c
+++ b/gfx.c
@@ -484,7 +484,7 @@ void DrawStringMultiLine(int x, int y, StringID str, int maxw)
{
char buffer[512];
uint32 tmp;
- int num, w, mt;
+ int num, mt;
const char *src;
byte c;
@@ -502,7 +502,6 @@ void DrawStringMultiLine(int x, int y, StringID str, int maxw)
src = buffer;
for(;;) {
- w = GetStringWidth(src);
DoDrawString(src, x, y, 0xFE);
_stringwidth_base = _stringwidth_out;