From 29e71638ce1dfa3d86a3b0ddf5b109e4fb0320a9 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 3 Jan 2005 08:50:44 +0000 Subject: (svn r1330) Increase size of some vars from int16 to int32 to guard against future overflows --- window.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'window.h') diff --git a/window.h b/window.h index 0d7c8be54..55c585999 100644 --- a/window.h +++ b/window.h @@ -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; -- cgit v1.2.3-54-g00ecf