diff options
author | alberth <alberth@openttd.org> | 2010-11-21 12:47:04 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-11-21 12:47:04 +0000 |
commit | 3e27739287dd52e80535c6fd583bb7db41859850 (patch) | |
tree | f87985fe2c203f381575ac8f78068643e18529c9 /src/saveload/map_sl.cpp | |
parent | 5f8afaadb7e82b351a26fd5590c6b1e8d148b23b (diff) | |
download | openttd-3e27739287dd52e80535c6fd583bb7db41859850.tar.xz |
(svn r21284) -Codechange: Rename CheckSavegameVersion() to IsSavegameVersionBefore().
Diffstat (limited to 'src/saveload/map_sl.cpp')
-rw-r--r-- | src/saveload/map_sl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/map_sl.cpp b/src/saveload/map_sl.cpp index 34b1098b0..7088a4406 100644 --- a/src/saveload/map_sl.cpp +++ b/src/saveload/map_sl.cpp @@ -101,7 +101,7 @@ static void Load_MAP2() for (TileIndex i = 0; i != size;) { SlArray(buf, MAP_SL_BUF_SIZE, /* In those versions the m2 was 8 bits */ - CheckSavegameVersion(5) ? SLE_FILE_U8 | SLE_VAR_U16 : SLE_UINT16 + IsSavegameVersionBefore(5) ? SLE_FILE_U8 | SLE_VAR_U16 : SLE_UINT16 ); for (uint j = 0; j != MAP_SL_BUF_SIZE; j++) _m[i++].m2 = buf[j]; } @@ -193,7 +193,7 @@ static void Load_MAP6() SmallStackSafeStackAlloc<byte, MAP_SL_BUF_SIZE> buf; TileIndex size = MapSize(); - if (CheckSavegameVersion(42)) { + if (IsSavegameVersionBefore(42)) { for (TileIndex i = 0; i != size;) { /* 1024, otherwise we overflow on 64x64 maps! */ SlArray(buf, 1024, SLE_UINT8); |