forked from mirror/OpenTTD
(svn r1330) Increase size of some vars from int16 to int32 to guard against future overflows
This commit is contained in:
10
window.h
10
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;
|
||||
|
||||
|
Reference in New Issue
Block a user