diff options
author | tron <tron@openttd.org> | 2006-02-18 14:41:24 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-02-18 14:41:24 +0000 |
commit | 7692556c6204fd3707456f5f63a4f055c39878dc (patch) | |
tree | 2b47e6b2c9b73650b42ce6caa2b78f05d91cc03b /oldloader.c | |
parent | 95ce125633734ced1cfc1de45034b51a26fc94cc (diff) | |
download | openttd-7692556c6204fd3707456f5f63a4f055c39878dc.tar.xz |
(svn r3613) Some more const, indentation, whitespace and similar stuff
Diffstat (limited to 'oldloader.c')
-rw-r--r-- | oldloader.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/oldloader.c b/oldloader.c index 653963a41..76fb79de9 100644 --- a/oldloader.c +++ b/oldloader.c @@ -472,17 +472,12 @@ static void ReadTTDPatchFlags(void) 1 vehicle == 128 bytes */ _bump_assert_value = (_old_vehicle_multipler - 1) * 850 * 128; - _new_ttdpatch_format = false; - /* Check if we have a modern TTDPatch savegame (has extra data all around) */ - if (memcmp(&_old_map3[0x1FFFA], "TTDp", 4) == 0) - _new_ttdpatch_format = true; + _new_ttdpatch_format = (memcmp(&_old_map3[0x1FFFA], "TTDp", 4) == 0); /* Clean the misused places */ - for (i = 0; i < 17; i++) - _old_map3[i] = 0; - for (i = 0x1FE00; i < 0x20000; i++) - _old_map3[i] = 0; + for (i = 0; i < 17; i++) _old_map3[i] = 0; + for (i = 0x1FE00; i < 0x20000; i++) _old_map3[i] = 0; if (_new_ttdpatch_format) DEBUG(oldloader, 1)("[OldLoader] Found TTDPatch game"); |