diff options
author | tron <tron@openttd.org> | 2005-08-06 17:40:21 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-08-06 17:40:21 +0000 |
commit | 486cffd2ad64a828a241ea45695654aa8c1c4458 (patch) | |
tree | d029614e85326d4e6edd38b2df4e06c8625d53c3 /order_cmd.c | |
parent | cfda4bb38cd31f09df024f9d1f9c65178ebeb312 (diff) | |
download | openttd-486cffd2ad64a828a241ea45695654aa8c1c4458.tar.xz |
(svn r2819) Make variables, which are exclusive for internal use of the save/load code, static in saveload.c
Diffstat (limited to 'order_cmd.c')
-rw-r--r-- | order_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/order_cmd.c b/order_cmd.c index 0b2679146..6c97dd43d 100644 --- a/order_cmd.c +++ b/order_cmd.c @@ -1120,13 +1120,13 @@ static void Save_ORDR(void) static void Load_ORDR(void) { - if (_sl.full_version <= 0x501) { + if (_sl_full_version <= 0x501) { /* Version older than 0x502 did not have a ->next pointer. Convert them (in the old days, the orderlist was 5000 items big) */ uint len = SlGetFieldLength(); uint i; - if (_sl.version < 5) { + if (_sl_version < 5) { /* Pre-version 5 had an other layout for orders (uint16 instead of uint32) */ uint16 orders[5000]; @@ -1142,7 +1142,7 @@ static void Load_ORDR(void) AssignOrder(GetOrder(i), UnpackVersion4Order(orders[i])); } - } else if (_sl.full_version <= 0x501) { + } else if (_sl_full_version <= 0x501) { uint32 orders[5000]; len /= sizeof(uint32); |