diff options
author | peter1138 <peter1138@openttd.org> | 2007-06-25 13:30:38 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-06-25 13:30:38 +0000 |
commit | 8ee9e8bf1e0b7c9fe9e9a41044e52f4e0e973634 (patch) | |
tree | 2aea1c963774b012ba0a63a2d9573f247003e6a9 /src/strgen/strgen.cpp | |
parent | 4e1e697bc638d89828910fe3bd042d5501f0fd77 (diff) | |
download | openttd-8ee9e8bf1e0b7c9fe9e9a41044e52f4e0e973634.tar.xz |
(svn r10323) -Codechange: reference company name, number and player (president) name
by index
Diffstat (limited to 'src/strgen/strgen.cpp')
-rw-r--r-- | src/strgen/strgen.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp index ebb5ed26b..c1af6bbf0 100644 --- a/src/strgen/strgen.cpp +++ b/src/strgen/strgen.cpp @@ -461,11 +461,6 @@ static const CmdStruct _cmd_structs[] = { {"REV", EmitSingleChar, SCC_REVISION, 0, 0}, // openttd revision string {"SHORTCARGO", EmitSingleChar, SCC_CARGO_SHORT, 2, 0}, // short cargo description, only ### tons, or ### litres - // These are special versions of {STRING1} - // The first string includes the second string. - {"COMPANY", EmitSingleChar, SCC_STRING1, 2, 0}, - {"PLAYERNAME", EmitSingleChar, SCC_STRING1, 1, 0}, - {"STRING1", EmitSingleChar, SCC_STRING1, 1, C_CASE}, // included string that consumes ONE argument {"STRING2", EmitSingleChar, SCC_STRING2, 2, C_CASE}, // included string that consumes TWO arguments {"STRING3", EmitSingleChar, SCC_STRING3, 3, C_CASE}, // included string that consumes THREE arguments @@ -506,6 +501,9 @@ static const CmdStruct _cmd_structs[] = { {"GROUP", EmitSingleChar, SCC_GROUP_NAME, 1, 0}, {"SIGN", EmitSingleChar, SCC_SIGN_NAME, 1, 0}, {"VEHICLE", EmitSingleChar, SCC_VEHICLE_NAME, 1, 0}, + {"COMPANY", EmitSingleChar, SCC_COMPANY_NAME, 1, 0}, + {"COMPANYNUM", EmitSingleChar, SCC_COMPANY_NUM, 1, 0}, + {"PLAYERNAME", EmitSingleChar, SCC_PLAYER_NAME, 1, 0}, // 0x9D is used for the pseudo command SETCASE // 0x9E is used for case switching |