diff options
author | Simei Yin | 2018-05-31 21:53:59 +0200 |
---|---|---|
committer | Simei Yin | 2018-05-31 23:15:09 +0200 |
commit | 719f5842fa2199b6003610aa5f4981626e9b52e1 (patch) | |
tree | a48e1fb8b758d6b5aa223fd2cb6369ab4476076d /engines/sludge/builtin.cpp | |
parent | 04ef7becf37fbc5ed0ac9183aa8355ffa838df4b (diff) | |
download | scummvm-rg350-719f5842fa2199b6003610aa5f4981626e9b52e1.tar.gz scummvm-rg350-719f5842fa2199b6003610aa5f4981626e9b52e1.tar.bz2 scummvm-rg350-719f5842fa2199b6003610aa5f4981626e9b52e1.zip |
SLUDGE: Move costume functions to struct Variable
Diffstat (limited to 'engines/sludge/builtin.cpp')
-rw-r--r-- | engines/sludge/builtin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp index f282d681cd..2aacead453 100644 --- a/engines/sludge/builtin.cpp +++ b/engines/sludge/builtin.cpp @@ -865,7 +865,7 @@ builtIn(costume) { } // Return value - newCostumeVariable(fun->reg, newPersona); + fun->reg.makeCostumeVariable(newPersona); return BR_CONTINUE; } @@ -1407,7 +1407,7 @@ builtIn(addCharacter) { Persona *p; int x, y, objectNumber; - p = getCostumeFromVar(fun->stack->thisVar); + p = fun->stack->thisVar.getCostumeFromVar(); if (p == NULL) return BR_ERROR; @@ -1568,7 +1568,7 @@ builtIn(animate) { builtIn(setCostume) { UNUSEDALL int obj; - Persona *pp = getCostumeFromVar(fun->stack->thisVar); + Persona *pp = fun->stack->thisVar.getCostumeFromVar(); if (pp == NULL) return BR_ERROR; trimStack(fun->stack); |