summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-06 17:40:21 +0000
committertron <tron@openttd.org>2005-08-06 17:40:21 +0000
commit03e860d06d21444377dda121a18e3f007e2d3116 (patch)
treed029614e85326d4e6edd38b2df4e06c8625d53c3 /vehicle.c
parent3b6b3af629367534c3e91676dc613f993a6a6314 (diff)
downloadopenttd-03e860d06d21444377dda121a18e3f007e2d3116.tar.xz
(svn r2819) Make variables, which are exclusive for internal use of the save/load code, static in saveload.c
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vehicle.c b/vehicle.c
index fa32a79ea..4c27eaa4d 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -2224,10 +2224,10 @@ static void Load_VEHS(void)
SlObject(v, _veh_descs[SlReadByte()]);
/* Old savegames used 'last_station_visited = 0xFF', should be 0xFFFF */
- if (_sl.version < 5 && v->last_station_visited == 0xFF)
+ if (_sl_version < 5 && v->last_station_visited == 0xFF)
v->last_station_visited = 0xFFFF;
- if (_sl.version < 5) {
+ if (_sl_version < 5) {
/* Convert the current_order.type (which is a mix of type and flags, because
in those versions, they both were 4 bits big) to type and flags */
v->current_order.flags = (v->current_order.type & 0xF0) >> 4;
@@ -2236,7 +2236,7 @@ static void Load_VEHS(void)
}
/* Check for shared order-lists (we now use pointers for that) */
- if (_sl.full_version < 0x502) {
+ if (_sl_full_version < 0x502) {
FOR_ALL_VEHICLES(v) {
Vehicle *u;