summaryrefslogtreecommitdiff
path: root/src/saveload/saveload.h
diff options
context:
space:
mode:
authorJohannes E. Krause <j.k@eclipso.de>2019-03-22 04:37:53 +0100
committerCharles Pigott <charlespigott@googlemail.com>2020-02-06 21:00:30 +0000
commit107283748ab599a1ae8a01f91c09e9f9a3e4bd06 (patch)
tree0ca588130d5c00d1fb0473c9cf04e4a19b6c5bbd /src/saveload/saveload.h
parentf389d66e36ceda578d30bde5f8ae94fdf2103704 (diff)
downloadopenttd-107283748ab599a1ae8a01f91c09e9f9a3e4bd06.tar.xz
Feature: SLF_HEX to print hexadecimal numbers in the config file
Diffstat (limited to 'src/saveload/saveload.h')
-rw-r--r--src/saveload/saveload.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/saveload/saveload.h b/src/saveload/saveload.h
index c06e8fdda..14c8c3231 100644
--- a/src/saveload/saveload.h
+++ b/src/saveload/saveload.h
@@ -471,7 +471,8 @@ enum VarTypes {
SLF_NO_NETWORK_SYNC = 1 << 10, ///< do not synchronize over network (but it is saved if SLF_NOT_IN_SAVE is not set)
SLF_ALLOW_CONTROL = 1 << 11, ///< allow control codes in the strings
SLF_ALLOW_NEWLINE = 1 << 12, ///< allow new lines in the strings
- /* 3 more possible flags */
+ SLF_HEX = 1 << 13, ///< print numbers as hex in the config file (only useful for unsigned)
+ /* 2 more possible flags */
};
typedef uint32 VarType;