[Scummvm-cvs-logs] CVS: scummvm/scumm script_v90he.cpp,2.126,2.127
kirben
kirben at users.sourceforge.net
Sun Feb 20 05:27:34 CET 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.335,2.336 scumm.h,1.534,1.535 sprite_he.cpp,1.1,1.2 sprite_he.h,1.1,1.2
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm sprite_he.cpp,1.2,1.3 sprite_he.h,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12136/scumm
Modified Files:
script_v90he.cpp
Log Message:
Use sprite functions
Index: script_v90he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v90he.cpp,v
retrieving revision 2.126
retrieving revision 2.127
diff -u -d -r2.126 -r2.127
--- script_v90he.cpp 20 Feb 2005 11:14:50 -0000 2.126
+++ script_v90he.cpp 20 Feb 2005 13:26:30 -0000 2.127
@@ -698,6 +698,7 @@
void ScummEngine_v90he::o90_getSpriteInfo() {
int args[16];
+ int eax, esi;
byte subOp = fetchScriptByte();
subOp -= 30;
@@ -734,8 +735,31 @@
pop();
break;
case 12:
- pop();
- pop();
+ esi = pop();
+ eax = pop();
+ if (eax) {
+ switch(esi) {
+ case 0:
+ push(spriteInfoGet_flags_1(eax));
+ break;
+ case 1:
+ push(spriteInfoGet_flags_2(eax));
+ break;
+ case 2:
+ push(spriteInfoGet_flags_3(eax));
+ break;
+ case 3:
+ push(spriteInfoGet_flags_4(eax));
+ break;
+ case 4:
+ push(spriteInfoGet_flags_5(eax));
+ break;
+ default:
+ push(0);
+ }
+ } else {
+ push(0);
+ }
break;
case 13:
pop();
@@ -768,7 +792,11 @@
pop();
break;
case 52:
- pop();
+ eax = pop();
+ if (eax)
+ push(spriteInfoGet_flags_6(eax));
+ else
+ push(0);
break;
case 62:
pop();
@@ -780,7 +808,11 @@
pop();
break;
case 94:
- pop();
+ eax = pop();
+ if (eax)
+ push(spriteInfoGet_flags_7(eax));
+ else
+ push(0);
break;
case 95:
getStackList(args, ARRAYSIZE(args));
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.335,2.336 scumm.h,1.534,1.535 sprite_he.cpp,1.1,1.2 sprite_he.h,1.1,1.2
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm sprite_he.cpp,1.2,1.3 sprite_he.h,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list