diff options
author | Simei Yin | 2018-05-31 22:21:30 +0200 |
---|---|---|
committer | Simei Yin | 2018-05-31 23:15:09 +0200 |
commit | 746fb3819faa7239b41c06492583bbe4296b5e02 (patch) | |
tree | f87b1c1c39b465cf8706a6a3cea57cfadd03bcfb /engines/sludge/bg_effects.cpp | |
parent | 9d85b807fbb15c850c2e5d2eb598badf565a4497 (diff) | |
download | scummvm-rg350-746fb3819faa7239b41c06492583bbe4296b5e02.tar.gz scummvm-rg350-746fb3819faa7239b41c06492583bbe4296b5e02.tar.bz2 scummvm-rg350-746fb3819faa7239b41c06492583bbe4296b5e02.zip |
SLUDGE: Move value getters to struct Variable
Diffstat (limited to 'engines/sludge/bg_effects.cpp')
-rw-r--r-- | engines/sludge/bg_effects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/bg_effects.cpp b/engines/sludge/bg_effects.cpp index d0c8068a27..d02acebe4f 100644 --- a/engines/sludge/bg_effects.cpp +++ b/engines/sludge/bg_effects.cpp @@ -196,7 +196,7 @@ bool blur_createSettings(int numParams, VariableStack *&stack) { for (int x = 0; x < width; x++) { int arraySlot = x + (y * width); // s_matrixEffectData[arraySlot] = (rand() % 4); - if (!getValueType(s_matrixEffectData[arraySlot], SVT_INT, eachNumber->thisVar)) { + if (!eachNumber->thisVar.getValueType(s_matrixEffectData[arraySlot], SVT_INT)) { error = ""; break; } @@ -205,10 +205,10 @@ bool blur_createSettings(int numParams, VariableStack *&stack) { trimStack(stack); } } - if (error.empty() && !getValueType(s_matrixEffectDivide, SVT_INT, stack->thisVar)) + if (error.empty() && !stack->thisVar.getValueType(s_matrixEffectDivide, SVT_INT)) error = ""; trimStack(stack); - if (error.empty() && !getValueType(s_matrixEffectBase, SVT_INT, stack->thisVar)) + if (error.empty() && !stack->thisVar.getValueType(s_matrixEffectBase, SVT_INT)) error = ""; trimStack(stack); if (error.empty()) { |