GOB: Correctly name the Penetration script variables

This commit is contained in:
Sven Hesse 2012-06-02 20:50:18 +02:00
parent c1dd3d5c29
commit 3eeb3d7416
3 changed files with 7 additions and 7 deletions

View File

@ -272,12 +272,12 @@ void Inter_Geisha::oGeisha_writeData(OpFuncParams &params) {
}
void Inter_Geisha::oGeisha_gamePenetration(OpGobParams &params) {
uint16 var1 = _vm->_game->_script->readUint16();
uint16 var2 = _vm->_game->_script->readUint16();
uint16 var3 = _vm->_game->_script->readUint16();
uint16 resultVar = _vm->_game->_script->readUint16();
uint16 hasAccessPass = _vm->_game->_script->readUint16();
uint16 hasMaxEnergy = _vm->_game->_script->readUint16();
uint16 testMode = _vm->_game->_script->readUint16();
uint16 resultVar = _vm->_game->_script->readUint16();
bool result = _penetration->play(var1, var2, var3);
bool result = _penetration->play(hasAccessPass, hasMaxEnergy, testMode);
WRITE_VAR_UINT32(resultVar, result ? 1 : 0);
}

View File

@ -62,7 +62,7 @@ Penetration::~Penetration() {
delete _background;
}
bool Penetration::play(uint16 var1, uint16 var2, uint16 var3) {
bool Penetration::play(bool hasAccessPass, bool hasMaxEnergy, bool testMode) {
init();
initScreen();

View File

@ -39,7 +39,7 @@ public:
Penetration(GobEngine *vm);
~Penetration();
bool play(uint16 var1, uint16 var2, uint16 var3);
bool play(bool hasAccessPass, bool hasMaxEnergy, bool testMode);
private:
GobEngine *_vm;