summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-13 21:34:05 +0000
committertron <tron@openttd.org>2005-08-13 21:34:05 +0000
commit38f344b3516e43b007e3cd821c46beadaba78df5 (patch)
tree313b302c076359ecd715627a1f81d14ac09902f3
parent302055fc150a182e4bc8b8c215205980f8589272 (diff)
downloadopenttd-38f344b3516e43b007e3cd821c46beadaba78df5.tar.xz
(svn r2863) Move some type declarations into saveload.c, should've been part of r2819
-rw-r--r--saveload.c6
-rw-r--r--saveload.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/saveload.c b/saveload.c
index 8ae995959..cf525e561 100644
--- a/saveload.c
+++ b/saveload.c
@@ -38,6 +38,12 @@ enum {
byte _sl_version; /// the major savegame version identifier
uint16 _sl_full_version; /// the full version of the savegame
+typedef void WriterProc(uint len);
+typedef uint ReaderProc(void);
+
+typedef uint ReferenceToIntProc(const void *obj, SLRefType rt);
+typedef void *IntToReferenceProc(uint index, SLRefType rt);
+
/** The saveload struct, containing reader-writer functions, bufffer, version, etc. */
static struct {
bool save; /// are we doing a save or a load atm. True when saving
diff --git a/saveload.h b/saveload.h
index 5dd6888a9..78a2b170f 100644
--- a/saveload.h
+++ b/saveload.h
@@ -41,9 +41,6 @@ typedef struct {
byte null;
} NullStruct;
-typedef void WriterProc(uint len);
-typedef uint ReaderProc(void);
-
typedef enum SLRefType {
REF_ORDER = 0,
REF_VEHICLE = 1,
@@ -53,9 +50,6 @@ typedef enum SLRefType {
REF_ROADSTOPS = 5
} SLRefType;
-typedef uint ReferenceToIntProc(const void *obj, SLRefType rt);
-typedef void *IntToReferenceProc(uint index, SLRefType rt);
-
extern byte _sl_version; /// the major savegame version identifier
extern uint16 _sl_full_version; /// the full version of the savegame