summaryrefslogtreecommitdiff
path: root/src/oldloader.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-24 09:53:15 +0000
committerrubidium <rubidium@openttd.org>2008-12-24 09:53:15 +0000
commitd1bb5e5f3632ada5336cd0408e11a6d17f43a5b7 (patch)
tree04c454a456e353e63a9ba8a438b575b0902b93e0 /src/oldloader.cpp
parent5b26afbd6b0446373a9f21ec80ee8bac82c11f0b (diff)
downloadopenttd-d1bb5e5f3632ada5336cd0408e11a6d17f43a5b7.tar.xz
(svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r--src/oldloader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp
index 89fbb297f..942b4eb0a 100644
--- a/src/oldloader.cpp
+++ b/src/oldloader.cpp
@@ -466,10 +466,10 @@ static const OldChunks town_chunk[] = {
OCL_SVAR( OC_UINT16, Town, ratings[6] ),
OCL_SVAR( OC_UINT16, Town, ratings[7] ),
- /* XXX - This is pretty odd.. we read 32bit, but only write 8bit.. sure there is
+ /* XXX - This is pretty odd.. we read 32bit, but only write 16bit.. sure there is
nothing changed ? ? */
- OCL_SVAR( OC_FILE_U32 | OC_VAR_U8, Town, have_ratings ),
- OCL_SVAR( OC_FILE_U32 | OC_VAR_U8, Town, statues ),
+ OCL_SVAR( OC_FILE_U32 | OC_VAR_U16, Town, have_ratings ),
+ OCL_SVAR( OC_FILE_U32 | OC_VAR_U16, Town, statues ),
OCL_NULL( 2 ), ///< num_houses, no longer in use
OCL_SVAR( OC_UINT8, Town, time_until_rebuild ),
OCL_SVAR( OC_UINT8, Town, growth_rate ),