[Scummvm-cvs-logs] CVS: scummvm/scumm script_v90he.cpp,2.243,2.244
kirben
kirben at users.sourceforge.net
Sun May 1 04:10:03 CEST 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/gob goblin.cpp,1.13,1.14 goblin.h,1.3,1.4 map.cpp,1.10,1.11 sound.cpp,1.8,1.9
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm palette_he.cpp,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12018/scumm
Modified Files:
script_v90he.cpp
Log Message:
Add extra cases for bb2demo.
Index: script_v90he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v90he.cpp,v
retrieving revision 2.243
retrieving revision 2.244
diff -u -d -r2.243 -r2.244
--- script_v90he.cpp 1 May 2005 03:17:44 -0000 2.243
+++ script_v90he.cpp 1 May 2005 11:09:30 -0000 2.244
@@ -2479,23 +2479,30 @@
void ScummEngine_v90he::o90_kernelGetFunctions() {
int args[29];
- int num;
+ int num, tmp;
+ Actor *a;
num = getStackList(args, ARRAYSIZE(args));
switch (args[0]) {
case 1001:
{
- double a = args[1] * PI / 180.;
- push((int)(sin(a) * 100000));
+ double b = args[1] * PI / 180.;
+ push((int)(sin(b) * 100000));
}
break;
case 1002:
{
- double a = args[1] * PI / 180.;
- push((int)(cos(a) * 100000));
+ double b = args[1] * PI / 180.;
+ push((int)(cos(b) * 100000));
}
break;
+ case 1969:
+ a = derefActor(args[1], "o90_kernelGetFunctions: 1969");
+ tmp = a->_heCondMask;
+ tmp &= 0x7FFF0000;
+ push(tmp);
+ break;
case 2001:
// Used in football
debug(0, "o90_kernelGetFunctions: U32 code %d (args %d)", args[1], num - 2);
@@ -2508,7 +2515,7 @@
void ScummEngine_v90he::o90_kernelSetFunctions() {
int args[29];
- int num;
+ int num, tmp;
Actor *a;
num = getStackList(args, ARRAYSIZE(args));
@@ -2555,6 +2562,13 @@
case 1492:
spriteInfoSet_flagDoubleBuffered(args[1], args[2]);
break;
+ case 1969:
+ a = derefActor(args[1], "o90_kernelSetFunctions: 1969");
+ tmp = a->_heCondMask;
+ tmp ^= args[2];
+ tmp &= 0x7FFF0000;
+ a->_heCondMask ^= tmp;
+ break;
case 2001:
// Used in SoccerMLS/Soccer2004
debug(0, "o90_kernelSetFunctions: U32 code %d (args %d)", args[1], num - 2);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/gob goblin.cpp,1.13,1.14 goblin.h,1.3,1.4 map.cpp,1.10,1.11 sound.cpp,1.8,1.9
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm palette_he.cpp,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list