diff options
author | Sylvain Dupont | 2011-01-22 13:19:16 +0000 |
---|---|---|
committer | Sylvain Dupont | 2011-01-22 13:19:16 +0000 |
commit | 185a0b90707b38da695ed141bb0802d62c61a121 (patch) | |
tree | 54e145bbf3e9909c9606316b8558735802b1dc69 | |
parent | dc27a2202622a1457c3aef038e2037ab080e9d30 (diff) | |
download | scummvm-rg350-185a0b90707b38da695ed141bb0802d62c61a121.tar.gz scummvm-rg350-185a0b90707b38da695ed141bb0802d62c61a121.tar.bz2 scummvm-rg350-185a0b90707b38da695ed141bb0802d62c61a121.zip |
GOB: Fixes the return value of dummy shooter in Last Dynasty
Mission 34 shooter must return 1 in order to proceed to the point & click part of the game.
svn-id: r55425
-rw-r--r-- | engines/gob/inter_v5.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/gob/inter_v5.cpp b/engines/gob/inter_v5.cpp index c1184b4ded..1c82f79ab9 100644 --- a/engines/gob/inter_v5.cpp +++ b/engines/gob/inter_v5.cpp @@ -67,6 +67,9 @@ void Inter_v5::setupOpcodesGob() { OPCODEGOB( 33, o5_spaceShooter); + OPCODEGOB( 34, o5_spaceShooter); + OPCODEGOB( 37, o5_spaceShooter); + OPCODEGOB( 80, o5_getSystemCDSpeed); OPCODEGOB( 81, o5_getSystemRAM); OPCODEGOB( 82, o5_getSystemCPUSpeed); @@ -264,8 +267,9 @@ void Inter_v5::o5_spaceShooter(OpGobParams ¶ms) { _vm->_game->_script->readInt16(); if (params.extraData != 0) { - WRITE_VARO_UINT32(var1, 2); - WRITE_VARO_UINT32(var2, 0); + // we need to return 1 for the shooter mission 34. There is only one planet to choose from in the map. + WRITE_VARO_UINT32(var1,(params.extraData == 34) ? 1 : 2); + WRITE_VARO_UINT32(var2,0); } else { if (params.paramCount < 5) { warning("Space shooter variable counter < 5"); |