summaryrefslogtreecommitdiff
path: root/ttd.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-03 08:50:44 +0000
committertron <tron@openttd.org>2005-01-03 08:50:44 +0000
commit29e71638ce1dfa3d86a3b0ddf5b109e4fb0320a9 (patch)
tree5c567cb4d90a99802939c3df5715fe67cc68f45b /ttd.h
parent608cdbe3f67b9b05ace108cdf1ab4ffc808c792a (diff)
downloadopenttd-29e71638ce1dfa3d86a3b0ddf5b109e4fb0320a9.tar.xz
(svn r1330) Increase size of some vars from int16 to int32 to guard against future overflows
Diffstat (limited to 'ttd.h')
-rw-r--r--ttd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ttd.h b/ttd.h
index 45880270f..ee8967cfd 100644
--- a/ttd.h
+++ b/ttd.h
@@ -273,14 +273,16 @@ typedef struct TileDesc {
} TileDesc;
typedef struct {
- int16 left, top;
+ int32 left;
+ int32 top;
byte width_1, width_2;
} ViewportSign;
typedef struct SignStruct {
StringID str;
ViewportSign sign;
- int16 x,y;
+ int32 x;
+ int32 y;
byte z;
} SignStruct;