diff options
author | rubidium <rubidium@openttd.org> | 2007-06-06 23:57:21 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-06 23:57:21 +0000 |
commit | eab8ac49cee7ca4e6aff934da8fd8a48801d5cfc (patch) | |
tree | 7226a1b004ffb23f31b30b97ae528df5b4ac3077 /src/saveload.cpp | |
parent | 07c34b2628b821e03fa3b996508897a763469107 (diff) | |
download | openttd-eab8ac49cee7ca4e6aff934da8fd8a48801d5cfc.tar.xz |
(svn r10049) -Codechange: get rid of the SLE_WRITEBYTE obfuscation.
Diffstat (limited to 'src/saveload.cpp')
-rw-r--r-- | src/saveload.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/saveload.cpp b/src/saveload.cpp index 420e5e98a..26dc7df51 100644 --- a/src/saveload.cpp +++ b/src/saveload.cpp @@ -744,7 +744,6 @@ size_t SlCalcObjMemberLength(const void *object, const SaveLoad *sld) default: NOT_REACHED(); } break; - case SL_WRITEBYTE: return 1; // a byte is logically of size 1 case SL_INCLUDE: return SlCalcObjLength(object, _sl.includes[sld->version_from]); default: NOT_REACHED(); } @@ -782,19 +781,6 @@ bool SlObjectMember(void *ptr, const SaveLoad *sld) } break; - /* SL_WRITEBYTE translates a value of a variable to another one upon - * saving or loading. - * XXX - variable renaming abuse - * game_value: the value of the variable ingame is abused by sld->version_from - * file_value: the value of the variable in the savegame is abused by sld->version_to */ - case SL_WRITEBYTE: - if (_sl.save) { - SlWriteByte(sld->version_to); - } else { - *(byte*)ptr = sld->version_from; - } - break; - /* SL_INCLUDE loads common code for a type * XXX - variable renaming abuse * include_index: common code to include from _desc_includes[], abused by sld->version_from */ |