aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parallaction_ns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/parallaction/parallaction_ns.cpp')
-rw-r--r--engines/parallaction/parallaction_ns.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/engines/parallaction/parallaction_ns.cpp b/engines/parallaction/parallaction_ns.cpp
index b354be4f49..7a476f7d24 100644
--- a/engines/parallaction/parallaction_ns.cpp
+++ b/engines/parallaction/parallaction_ns.cpp
@@ -138,9 +138,12 @@ int Parallaction_ns::init() {
initParsers();
_introSarcData1 = 0;
+ _introSarcData2 = 1;
+ _introSarcData3 = 200;
+
num_foglie = 0;
- _animations.push_front(_char._ani);
+ _location._animations.push_front(_char._ani);
Parallaction::init();
@@ -156,7 +159,7 @@ Parallaction_ns::~Parallaction_ns() {
delete _instructionNames;
delete _locationStmt;
- _animations.remove(_char._ani);
+ _location._animations.remove(_char._ani);
}
@@ -303,7 +306,7 @@ void Parallaction_ns::changeLocation(char *location) {
setArrowCursor();
}
- _animations.remove(_char._ani);
+ _location._animations.remove(_char._ani);
freeLocation();
@@ -323,7 +326,7 @@ void Parallaction_ns::changeLocation(char *location) {
changeCharacter(locname.character());
}
- _animations.push_front(_char._ani);
+ _location._animations.push_front(_char._ani);
strcpy(_saveData1, locname.location());
parseLocation(_saveData1);
@@ -354,8 +357,8 @@ void Parallaction_ns::changeLocation(char *location) {
runCommands(_location._aCommands);
- if (_hasLocationSound)
- _soundMan->playSfx(_locationSound, 0, true);
+ if (_location._hasSound)
+ _soundMan->playSfx(_location._soundFile, 0, true);
debugC(1, kDebugExec, "changeLocation() done");
@@ -417,7 +420,7 @@ void Parallaction_ns::cleanupGame() {
_engineFlags &= ~kEngineTransformedDonna;
// this code saves main character animation from being removed from the following code
- _animations.remove(_char._ani);
+ _location._animations.remove(_char._ani);
_numLocations = 0;
_commandFlags = 0;
@@ -434,7 +437,7 @@ void Parallaction_ns::cleanupGame() {
_engineFlags &= ~kEngineQuit;
// main character animation is restored
- _animations.push_front(_char._ani);
+ _location._animations.push_front(_char._ani);
_score = 0;
return;