ASYLUM: Move puzzles handling to Puzzles class (formerly PuzzleData)
This commit is contained in:
parent
f09c34bc51
commit
b1493f5be3
12 changed files with 176 additions and 101 deletions
|
@ -22,6 +22,8 @@
|
|||
|
||||
#include "asylum/resources/script.h"
|
||||
|
||||
#include "asylum/puzzles/puzzles.h"
|
||||
|
||||
#include "asylum/resources/actor.h"
|
||||
#include "asylum/resources/encounters.h"
|
||||
#include "asylum/resources/object.h"
|
||||
|
@ -1124,7 +1126,7 @@ IMPLEMENT_OPCODE(RunPuzzle)
|
|||
getScreen()->clear();
|
||||
getScreen()->clearGraphicsInQueue();
|
||||
|
||||
_vm->switchEventHandler(_vm->getPuzzle((uint32)cmd->param1));
|
||||
_vm->switchEventHandler(getPuzzles()->getPuzzle((uint32)cmd->param1));
|
||||
|
||||
_currentQueueEntry->currentLine++;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue