diff options
author | tron <tron@openttd.org> | 2005-01-03 08:50:44 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-03 08:50:44 +0000 |
commit | 29e71638ce1dfa3d86a3b0ddf5b109e4fb0320a9 (patch) | |
tree | 5c567cb4d90a99802939c3df5715fe67cc68f45b /window.h | |
parent | 608cdbe3f67b9b05ace108cdf1ab4ffc808c792a (diff) | |
download | openttd-29e71638ce1dfa3d86a3b0ddf5b109e4fb0320a9.tar.xz |
(svn r1330) Increase size of some vars from int16 to int32 to guard against future overflows
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -276,7 +276,9 @@ typedef struct { } traindetails_d; typedef struct { - int16 scroll_x, scroll_y, subscroll; + int32 scroll_x; + int32 scroll_y; + int32 subscroll; } smallmap_d; typedef struct { @@ -291,12 +293,14 @@ typedef struct { typedef struct { uint16 follow_vehicle; - int16 scrollpos_x, scrollpos_y; + int32 scrollpos_x; + int32 scrollpos_y; } vp_d; typedef struct { uint16 follow_vehicle; - int16 scrollpos_x, scrollpos_y; + int32 scrollpos_x; + int32 scrollpos_y; NewsItem *ni; } news_d; |