summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan G Rennison <j.g.rennison@gmail.com>2020-05-17 22:24:59 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2020-06-28 15:32:53 +0200
commit54237b0e98894008168285109634479dddb1bc16 (patch)
treefa2c793f4acee10ff39dd13279e091772efcb0d7 /src
parentcf8ccf4b08a0ad27079b91cacd8af01112646aa4 (diff)
downloadopenttd-54237b0e98894008168285109634479dddb1bc16.tar.xz
Codechange: Move SlSkipBytes to saveload.h
Diffstat (limited to 'src')
-rw-r--r--src/saveload/saveload.cpp10
-rw-r--r--src/saveload/saveload.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index 4da89aa84..8cf6a3923 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -468,16 +468,6 @@ static inline void SlWriteUint64(uint64 x)
}
/**
- * Read in bytes from the file/data structure but don't do
- * anything with them, discarding them in effect
- * @param length The amount of bytes that is being treated this way
- */
-static inline void SlSkipBytes(size_t length)
-{
- for (; length != 0; length--) SlReadByte();
-}
-
-/**
* Read in the header descriptor of an object or an array.
* If the highest bit is set (7), then the index is bigger than 127
* elements, so use the next byte to read in the real value.
diff --git a/src/saveload/saveload.h b/src/saveload/saveload.h
index af2de1189..26462cdaa 100644
--- a/src/saveload/saveload.h
+++ b/src/saveload/saveload.h
@@ -900,6 +900,16 @@ void NORETURN SlErrorCorruptFmt(const char *format, ...) WARN_FORMAT(1, 2);
bool SaveloadCrashWithMissingNewGRFs();
+/**
+ * Read in bytes from the file/data structure but don't do
+ * anything with them, discarding them in effect
+ * @param length The amount of bytes that is being treated this way
+ */
+static inline void SlSkipBytes(size_t length)
+{
+ for (; length != 0; length--) SlReadByte();
+}
+
extern char _savegame_format[8];
extern bool _do_autosave;