diff options
author | Travis Howell | 2005-02-20 23:55:11 +0000 |
---|---|---|
committer | Travis Howell | 2005-02-20 23:55:11 +0000 |
commit | e62d949fb6364d46df9dcd04125e110e56d49c2c (patch) | |
tree | 8ab93a036ab707a07c3b8803e274dc8a0bc781cd /scumm/script_v90he.cpp | |
parent | 8ae3fe1ffefa4ba47428a4a4d246260e4f22de7f (diff) | |
download | scummvm-rg350-e62d949fb6364d46df9dcd04125e110e56d49c2c.tar.gz scummvm-rg350-e62d949fb6364d46df9dcd04125e110e56d49c2c.tar.bz2 scummvm-rg350-e62d949fb6364d46df9dcd04125e110e56d49c2c.zip |
Add sprite function
svn-id: r16834
Diffstat (limited to 'scumm/script_v90he.cpp')
-rw-r--r-- | scumm/script_v90he.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/scumm/script_v90he.cpp b/scumm/script_v90he.cpp index fb623e0ea5..2be8fbafa5 100644 --- a/scumm/script_v90he.cpp +++ b/scumm/script_v90he.cpp @@ -699,6 +699,7 @@ void ScummEngine_v90he::o90_getDistanceBetweenPoints() { void ScummEngine_v90he::o90_getSpriteInfo() { int args[16]; int eax, esi; + int32 w, h; byte subOp = fetchScriptByte(); subOp -= 30; @@ -711,10 +712,22 @@ void ScummEngine_v90he::o90_getSpriteInfo() { pop(); break; case 2: - pop(); + eax = pop(); + if (eax) { + getSpriteImageDim(eax, w, h); + push(w); + } else { + push(0); + } break; case 3: - pop(); + eax = pop(); + if (eax) { + getSpriteImageDim(eax, w, h); + push(h); + } else { + push(0); + } break; case 4: pop(); |