summaryrefslogtreecommitdiff
path: root/vehicle.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 /vehicle.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 'vehicle.h')
-rw-r--r--vehicle.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/vehicle.h b/vehicle.h
index bceeff763..59dbaf62e 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -178,7 +178,10 @@ struct Vehicle {
// Boundaries for the current position in the world and a next hash link.
// NOSAVE: All of those can be updated with VehiclePositionChanged()
- int16 left_coord, top_coord, right_coord, bottom_coord;
+ int32 left_coord;
+ int32 top_coord;
+ int32 right_coord;
+ int32 bottom_coord;
uint16 next_hash;
// Related to age and service time