From 2c998051173484aeac026de21a50177313908d37 Mon Sep 17 00:00:00 2001 From: yexo Date: Mon, 16 Jan 2012 22:29:25 +0000 Subject: (svn r23816) -Fix (r23635, r23805): make SCC_ENCODED the first entry in the StringControlCode enum since it's value is not allowed to change --- src/table/control_codes.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/table') 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, -- cgit v1.2.3-70-g09d2