mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 21:54:15 +00:00
yet more v2 var fixes
svn-id: r7397
This commit is contained in:
parent
af14dabc75
commit
4d7f7a8c80
@ -1982,7 +1982,7 @@ void Scumm::setCameraAt(int pos_x, int pos_y) {
|
||||
if (camera._cur.x > VAR(VAR_CAMERA_MAX_X))
|
||||
camera._cur.x = VAR(VAR_CAMERA_MAX_X);
|
||||
|
||||
if (VAR(VAR_SCROLL_SCRIPT)) {
|
||||
if (VAR_SCROLL_SCRIPT != 0xFF && VAR(VAR_SCROLL_SCRIPT)) {
|
||||
VAR(VAR_CAMERA_POS_X) = camera._cur.x;
|
||||
runScript(VAR(VAR_SCROLL_SCRIPT), 0, 0, 0);
|
||||
}
|
||||
|
@ -589,10 +589,14 @@ bool Scumm::isScriptInUse(int script) {
|
||||
|
||||
|
||||
void Scumm::runHook(int i) {
|
||||
int tmp[16];
|
||||
tmp[0] = i;
|
||||
if (VAR(VAR_HOOK_SCRIPT)) {
|
||||
runScript(VAR(VAR_HOOK_SCRIPT), 0, 0, tmp);
|
||||
if (_features & GF_AFTER_V2) {
|
||||
// FIXME - TODO
|
||||
} else {
|
||||
int tmp[16];
|
||||
tmp[0] = i;
|
||||
if (VAR(VAR_HOOK_SCRIPT)) {
|
||||
runScript(VAR(VAR_HOOK_SCRIPT), 0, 0, tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user