From e3d1d914ac88036a8a2a627f8448110ea04e5f1a Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 8 Dec 2009 22:07:17 +0000 Subject: Attempt to fix MSVC warning C4121. svn-id: r46299 --- engines/draci/script.cpp | 62 ++++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'engines/draci/script.cpp') diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp index 4c89cfba7d..90f20920fc 100644 --- a/engines/draci/script.cpp +++ b/engines/draci/script.cpp @@ -100,44 +100,44 @@ void Script::setupCommandList() { /** Operators used by the mathematical evaluator */ static const GPL2Operator gplOperators[] = { - {"&", &Script::operAnd }, - {"|", &Script::operOr }, - {"^", &Script::operXor }, - {"==", &Script::operEqual }, - {"!=", &Script::operNotEqual }, - {"<", &Script::operLess }, - {">", &Script::operGreater }, - {"<=", &Script::operLessOrEqual }, - {">=", &Script::operGreaterOrEqual }, - {"*", &Script::operMul }, - {"/", &Script::operDiv }, - {"%", &Script::operMod }, - {"+", &Script::operAdd }, - {"-", &Script::operSub } + { &Script::operAnd, "&" }, + { &Script::operOr, "|" }, + { &Script::operXor, "^" }, + { &Script::operEqual, "==" }, + { &Script::operNotEqual, "!=" }, + { &Script::operLess, "<" }, + { &Script::operGreater, ">" }, + { &Script::operLessOrEqual, "<=" }, + { &Script::operGreaterOrEqual, ">=" }, + { &Script::operMul, "*" }, + { &Script::operDiv, "/" }, + { &Script::operMod, "%" }, + { &Script::operAdd, "+" }, + { &Script::operSub, "-" } }; /** Functions used by the mathematical evaluator */ static const GPL2Function gplFunctions[] = { - { "Not", &Script::funcNot }, - { "Random", &Script::funcRandom }, - { "IsIcoOn", &Script::funcIsIcoOn }, - { "IsIcoAct", &Script::funcIsIcoAct }, - { "IcoStat", &Script::funcIcoStat }, - { "ActIco", &Script::funcActIco }, - { "IsObjOn", &Script::funcIsObjOn }, - { "IsObjOff", &Script::funcIsObjOff }, - { "IsObjAway", &Script::funcIsObjAway }, - { "ObjStat", &Script::funcObjStat }, - { "LastBlock", &Script::funcLastBlock }, - { "AtBegin", &Script::funcAtBegin }, - { "BlockVar", &Script::funcBlockVar }, - { "HasBeen", &Script::funcHasBeen }, - { "MaxLine", &Script::funcMaxLine }, - { "ActPhase", &Script::funcActPhase }, + { &Script::funcNot, "Not" }, + { &Script::funcRandom, "Random" }, + { &Script::funcIsIcoOn, "IsIcoOn" }, + { &Script::funcIsIcoAct, "IsIcoAct" }, + { &Script::funcIcoStat, "IcoStat" }, + { &Script::funcActIco, "ActIco" }, + { &Script::funcIsObjOn, "IsObjOn" }, + { &Script::funcIsObjOff, "IsObjOff" }, + { &Script::funcIsObjAway, "IsObjAway" }, + { &Script::funcObjStat, "ObjStat" }, + { &Script::funcLastBlock, "LastBlock" }, + { &Script::funcAtBegin, "AtBegin" }, + { &Script::funcBlockVar, "BlockVar" }, + { &Script::funcHasBeen, "HasBeen" }, + { &Script::funcMaxLine, "MaxLine" }, + { &Script::funcActPhase, "ActPhase" }, // The following function is not even defined in the game // sources, but its number is allocated for internal purposes // of the old player. - { "Cheat", NULL }, + { NULL, "Cheat" }, }; _commandList = gplCommands; -- cgit v1.2.3