Skip to content

Commit

Permalink
TWINE: don't use the global var
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Oct 26, 2020
1 parent 927e6cc commit bb76f5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/twine/script_move.cpp
Expand Up @@ -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++;
Expand Down
2 changes: 1 addition & 1 deletion engines/twine/twine.h
Expand Up @@ -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 */
Expand Down

0 comments on commit bb76f5e

Please sign in to comment.