TWINE: don't use the global var

This commit is contained in:
Martin Gerhardy 2020-10-26 18:10:39 +01:00
parent 927e6cc2d1
commit bb76f5ed99
2 changed files with 2 additions and 2 deletions

View file

@ -592,7 +592,7 @@ void ScriptMove::processMoveScript(int32 actorIdx) {
do {
scriptPosition = actor->positionInMoveScript;
// TODO: use Common::MemoryReadStream for the script parsing
scriptPtr = actor->moveScript + scriptPosition;
scriptPtr = actor->moveScript + actor->positionInMoveScript;
int32 scriptOpcode = *(scriptPtr++);
actor->positionInMoveScript++;

View file

@ -49,7 +49,7 @@ namespace TwinE {
/** Original screen height */
#define DEFAULT_SCREEN_HEIGHT 480
/** Scale screen to double size */
#define SCALE 1
#define SCALE 1 // TODO: remove me or support me
/** Original screen width */
#define SCREEN_WIDTH DEFAULT_SCREEN_WIDTH *SCALE
/** Original screen height */