[Scummvm-cvs-logs] scummvm master -> 26befa4b40dd230d51be756d189b92517c94720c
clone2727
clone2727 at gmail.com
Fri Aug 12 15:34:56 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
26befa4b40 SCUMM: Implement basketball u32 op 1012
Commit: 26befa4b40dd230d51be756d189b92517c94720c
https://github.com/scummvm/scummvm/commit/26befa4b40dd230d51be756d189b92517c94720c
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2011-08-12T06:29:37-07:00
Commit Message:
SCUMM: Implement basketball u32 op 1012
The game no longer divides by zero when starting a match and the court is now visible.
Changed paths:
engines/scumm/he/logic_he.cpp
engines/scumm/he/logic_he.h
diff --git a/engines/scumm/he/logic_he.cpp b/engines/scumm/he/logic_he.cpp
index af56bca..ffdc365 100644
--- a/engines/scumm/he/logic_he.cpp
+++ b/engines/scumm/he/logic_he.cpp
@@ -1386,6 +1386,7 @@ int32 LogicHEbasketball::dispatch(int op, int numArgs, int32 *args) {
break;
case 1012:
+ res = op_1012();
break;
case 1035:
@@ -1449,6 +1450,15 @@ int32 LogicHEbasketball::dispatch(int op, int numArgs, int32 *args) {
return res;
}
+int LogicHEbasketball::op_1012() {
+ writeScummVar(108, 12000);
+ writeScummVar(109, 8000);
+ writeScummVar(110, 760);
+ writeScummVar(111, 4000);
+ writeScummVar(112, 1600);
+ return 1;
+}
+
/***********************
* Moonbase Commander
*
diff --git a/engines/scumm/he/logic_he.h b/engines/scumm/he/logic_he.h
index e05a05f..e649a93 100644
--- a/engines/scumm/he/logic_he.h
+++ b/engines/scumm/he/logic_he.h
@@ -174,6 +174,9 @@ public:
int versionID();
int32 dispatch(int op, int numArgs, int32 *args);
+
+private:
+ int op_1012();
};
class LogicHEmoonbase : public LogicHE {
More information about the Scummvm-git-logs
mailing list