summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2012-01-16 22:29:25 +0000
committeryexo <yexo@openttd.org>2012-01-16 22:29:25 +0000
commit2c998051173484aeac026de21a50177313908d37 (patch)
tree4f9ce66ed13db21ea3848341f894b3f9882752f5 /src/table
parent358b3e41b25ec207af0652895545a10be9be5811 (diff)
downloadopenttd-2c998051173484aeac026de21a50177313908d37.tar.xz
(svn r23816) -Fix (r23635, r23805): make SCC_ENCODED the first entry in the StringControlCode enum since it's value is not allowed to change
Diffstat (limited to 'src/table')
-rw-r--r--src/table/control_codes.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/table/control_codes.h b/src/table/control_codes.h
index 28266c155..81b100921 100644
--- a/src/table/control_codes.h
+++ b/src/table/control_codes.h
@@ -23,8 +23,11 @@ enum StringControlCode {
SCC_SPRITE_START = 0xE200,
SCC_SPRITE_END = SCC_SPRITE_START + 0xFF,
+ /* This must be the first entry. It's encoded in strings that are saved. */
+ SCC_ENCODED = SCC_CONTROL_START,
+
/* Display control codes */
- SCC_SETX = SCC_CONTROL_START,
+ SCC_SETX,
SCC_SETXY,
SCC_TINYFONT, ///< Switch to small font
SCC_BIGFONT, ///< Switch to large font
@@ -74,7 +77,6 @@ enum StringControlCode {
SCC_STRING6,
SCC_STRING7,
- SCC_ENCODED,
SCC_STRING,
SCC_COMMA,