summaryrefslogtreecommitdiff
path: root/src/saveload.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-06 23:57:21 +0000
committerrubidium <rubidium@openttd.org>2007-06-06 23:57:21 +0000
commitddf249b2fe21929a2724085956f060f1f7586a90 (patch)
tree7226a1b004ffb23f31b30b97ae528df5b4ac3077 /src/saveload.h
parenta0a43b4a7eb970662039d95754f1b02c346dd02c (diff)
downloadopenttd-ddf249b2fe21929a2724085956f060f1f7586a90.tar.xz
(svn r10049) -Codechange: get rid of the SLE_WRITEBYTE obfuscation.
Diffstat (limited to 'src/saveload.h')
-rw-r--r--src/saveload.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/saveload.h b/src/saveload.h
index 7589db5f2..24dc9f231 100644
--- a/src/saveload.h
+++ b/src/saveload.h
@@ -161,7 +161,6 @@ enum SaveLoadTypes {
SL_STR = 3,
SL_LST = 4,
// non-normal save-load types
- SL_WRITEBYTE = 8,
SL_INCLUDE = 9,
SL_END = 15
};
@@ -201,8 +200,6 @@ typedef SaveLoad SaveLoadGlobVarList;
#define SLE_CONDNULL(length, from, to) SLE_CONDARR(NullStruct, null, SLE_FILE_U8 | SLE_VAR_NULL | SLF_CONFIG_NO, length, from, to)
-/* Translate values ingame to different values in the savegame and vv */
-#define SLE_WRITEBYTE(base, variable, game_value, file_value) SLE_GENERAL(SL_WRITEBYTE, base, variable, 0, 0, game_value, file_value)
/* Load common code and put it into each struct (currently only for vehicles */
#define SLE_INCLUDE(base, variable, include_index) SLE_GENERAL(SL_INCLUDE, base, variable, 0, 0, include_index, 0)
@@ -214,7 +211,6 @@ typedef SaveLoad SaveLoadGlobVarList;
#define SLE_VARX(offset, type) SLE_CONDVARX(offset, type, 0, SL_MAX_VERSION)
#define SLE_REFX(offset, type) SLE_CONDREFX(offset, type, 0, SL_MAX_VERSION)
-#define SLE_WRITEBYTEX(offset, something) SLE_GENERALX(SL_WRITEBYTE, offset, 0, something, 0)
#define SLE_INCLUDEX(offset, type) SLE_GENERALX(SL_INCLUDE, offset, type, 0, SL_MAX_VERSION)
/* End marker */