diff options
author | Vincent Hamm | 2002-03-06 00:18:22 +0000 |
---|---|---|
committer | Vincent Hamm | 2002-03-06 00:18:22 +0000 |
commit | c7d58aca8485eff7309af22eefee6398ce136159 (patch) | |
tree | ef4ac880e6ef06692621668e98a99a4fa099c1c7 /script_v2.cpp | |
parent | e05f3534b40fce5b5f7063631913134cc77ab422 (diff) | |
download | scummvm-rg350-c7d58aca8485eff7309af22eefee6398ce136159.tar.gz scummvm-rg350-c7d58aca8485eff7309af22eefee6398ce136159.tar.bz2 scummvm-rg350-c7d58aca8485eff7309af22eefee6398ce136159.zip |
Final part of V7 merging process. The FULL_THROTTLE define is not required any more
svn-id: r3660
Diffstat (limited to 'script_v2.cpp')
-rw-r--r-- | script_v2.cpp | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/script_v2.cpp b/script_v2.cpp index 25ddbf5df2..9f0f70d295 100644 --- a/script_v2.cpp +++ b/script_v2.cpp @@ -1189,26 +1189,26 @@ void Scumm::o6_panCameraTo() { } void Scumm::o6_actorFollowCamera() { -#if defined(FULL_THROTTLE) - setCameraFollows(derefActorSafe(pop(), "actorFollowCamera")); -#else - actorFollowCamera(pop()); -#endif + if(_features & GF_AFTER_V7) + setCameraFollows(derefActorSafe(pop(), "actorFollowCamera")); + else + actorFollowCamera(pop()); + } void Scumm::o6_setCameraAt() { -#if defined(FULL_THROTTLE) - int x,y; + if(_features & GF_AFTER_V7) { + int x,y; - camera._follows = 0; + camera._follows = 0; - y = pop(); - x = pop(); - - setCameraAt(x,y); -#else - setCameraAtEx(pop()); -#endif + y = pop(); + x = pop(); + + setCameraAt(x,y); + } else { + setCameraAtEx(pop()); + } } void Scumm::o6_loadRoom() { @@ -1384,10 +1384,11 @@ void Scumm::o6_loadRoomWithEgo() { _vars[VAR_WALKTO_OBJ] = 0; /* startScene maybe modifies VAR_EGO, i hope not */ -#if !defined(FULL_THROTTLE) - camera._dest.x = camera._cur.x = a->x; - setCameraFollows(a); -#endif + + if(!(_features & GF_AFTER_V7)) { + camera._dest.x = camera._cur.x = a->x; + setCameraFollows(a); + } _fullRedraw=1; if (x != -1) { startWalkActor(a, x, y, -1); @@ -1536,10 +1537,9 @@ void Scumm::o6_resourceRoutines() { switch(fetchScriptByte()) { case 100: /* load script */ res = pop(); -#if defined(FULL_THROTTLE) - if (res >= _numGlobalScripts) - break; -#endif + if(_features & GF_AFTER_V7) + if (res >= _numGlobalScripts) + break; ensureResourceLoaded(rtScript, res); break; case 101: /* load sound */ @@ -1556,10 +1556,9 @@ void Scumm::o6_resourceRoutines() { break; case 104: /* nuke script */ res = pop(); -#if defined(FULL_THROTTLE) - if (res >= _numGlobalScripts) - break; -#endif + if(_features & GF_AFTER_V7) + if (res >= _numGlobalScripts) + break; setResourceCounter(rtScript, res, 0x7F); debug(5, "nuke script %d", res); break; @@ -2172,14 +2171,15 @@ void Scumm::o6_wait() { break; return; case 170: -#if !defined(FULL_THROTTLE) - if (camera._cur.x>>3 != camera._dest.x>>3) - break; -#else - if (camera._dest.x != camera._cur.x || - camera._dest.y != camera._cur.y) + if(!(_features & GF_AFTER_V7)) { + if (camera._cur.x>>3 != camera._dest.x>>3) break; -#endif + } else { + if (camera._dest.x != camera._cur.x || + camera._dest.y != camera._cur.y) + break; + } + return; case 171: if (_sentenceNum) { |