diff options
Diffstat (limited to 'engines/gob/global.h')
-rw-r--r-- | engines/gob/global.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/gob/global.h b/engines/gob/global.h index 3dc1876090..242c05578f 100644 --- a/engines/gob/global.h +++ b/engines/gob/global.h @@ -163,6 +163,22 @@ public: int16 _inter_mouseX; int16 _inter_mouseY; + inline void clearVars(uint32 count) + { + uint32 i; + + for (i = 0; i < count; i++) { + _inter_variablesSizes[i * 4] = 3; + _inter_variablesSizes[i * 4 + 1] = 0; + _inter_variablesSizes[i * 4 + 2] = 0; + _inter_variablesSizes[i * 4 + 3] = 0; + _inter_variables[i * 4] = 0; + _inter_variables[i * 4 + 1] = 0; + _inter_variables[i * 4 + 2] = 0; + _inter_variables[i * 4 + 3] = 0; + } + } + inline void writeVarSizeStr(uint32 offset, uint32 len) { uint32 i; uint32 inVar; |