SCUMM: Turned PARAM_1,2,3 into an enum; minor tweaks
svn-id: r40008
This commit is contained in:
parent
56a31019b7
commit
9655fa831e
4 changed files with 8 additions and 28 deletions
|
@ -359,10 +359,6 @@ void ScummEngine_v0::setupOpcodes() {
|
|||
|
||||
#define SENTENCE_SCRIPT 2
|
||||
|
||||
#define PARAM_1 0x80
|
||||
#define PARAM_2 0x40
|
||||
#define PARAM_3 0x20
|
||||
|
||||
int ScummEngine_v0::getVarOrDirectWord(byte mask) {
|
||||
return getVarOrDirectByte(mask);
|
||||
}
|
||||
|
@ -1037,8 +1033,4 @@ void ScummEngine_v0::resetSentence() {
|
|||
_activeVerb = 13;
|
||||
}
|
||||
|
||||
#undef PARAM_1
|
||||
#undef PARAM_2
|
||||
#undef PARAM_3
|
||||
|
||||
} // End of namespace Scumm
|
||||
|
|
|
@ -361,10 +361,6 @@ void ScummEngine_v2::setupOpcodes() {
|
|||
|
||||
#define SENTENCE_SCRIPT 2
|
||||
|
||||
#define PARAM_1 0x80
|
||||
#define PARAM_2 0x40
|
||||
#define PARAM_3 0x20
|
||||
|
||||
int ScummEngine_v2::getVar() {
|
||||
return readVar(fetchScriptByte());
|
||||
}
|
||||
|
@ -1626,8 +1622,4 @@ void ScummEngine_v2::runInventoryScript(int i) {
|
|||
redrawV2Inventory();
|
||||
}
|
||||
|
||||
#undef PARAM_1
|
||||
#undef PARAM_2
|
||||
#undef PARAM_3
|
||||
|
||||
} // End of namespace Scumm
|
||||
|
|
|
@ -362,10 +362,6 @@ void ScummEngine_v5::setupOpcodes() {
|
|||
OPCODE(0xff, o5_drawBox);
|
||||
}
|
||||
|
||||
#define PARAM_1 0x80
|
||||
#define PARAM_2 0x40
|
||||
#define PARAM_3 0x20
|
||||
|
||||
int ScummEngine_v5::getVar() {
|
||||
return readVar(fetchScriptWord());
|
||||
}
|
||||
|
@ -2294,7 +2290,7 @@ void ScummEngine_v5::o5_setVarRange() {
|
|||
_resultVarNumber++;
|
||||
} while (--a);
|
||||
|
||||
// Macintosh verison of indy3ega used different interface, so adjust values.
|
||||
// Macintosh version of indy3ega used different interface, so adjust values.
|
||||
if (_game.id == GID_INDY3 && _game.platform == Common::kPlatformMacintosh) {
|
||||
VAR(68) = 0;
|
||||
VAR(69) = 0;
|
||||
|
@ -2745,9 +2741,7 @@ void ScummEngine_v5::o5_wait() {
|
|||
if (_sentenceNum) {
|
||||
if (_sentence[_sentenceNum - 1].freezeCount && !isScriptInUse(VAR(VAR_SENTENCE_SCRIPT)))
|
||||
return;
|
||||
break;
|
||||
}
|
||||
if (!isScriptInUse(VAR(VAR_SENTENCE_SCRIPT)))
|
||||
} else if (!isScriptInUse(VAR(VAR_SENTENCE_SCRIPT)))
|
||||
return;
|
||||
break;
|
||||
default:
|
||||
|
@ -3082,8 +3076,4 @@ void ScummEngine_v5::o5_pickupObjectOld() {
|
|||
runInventoryScript(1);
|
||||
}
|
||||
|
||||
#undef PARAM_1
|
||||
#undef PARAM_2
|
||||
#undef PARAM_3
|
||||
|
||||
} // End of namespace Scumm
|
||||
|
|
|
@ -44,6 +44,12 @@ protected:
|
|||
|
||||
char _saveLoadVarsFilename[256];
|
||||
|
||||
enum {
|
||||
PARAM_1 = 0x80,
|
||||
PARAM_2 = 0x40,
|
||||
PARAM_3 = 0x20
|
||||
};
|
||||
|
||||
public:
|
||||
ScummEngine_v5(OSystem *syst, const DetectorResult &dr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue