diff options
author | Travis Howell | 2003-05-30 09:39:21 +0000 |
---|---|---|
committer | Travis Howell | 2003-05-30 09:39:21 +0000 |
commit | a5b2774685c08b2ba9de79856f3d96a5de26bd4c (patch) | |
tree | 93c1963cfd7aebaac29fba85172d11bd468e9c89 /simon | |
parent | fb5bd02b40cfa1accfcfdf60e20f4e985852a70a (diff) | |
download | scummvm-rg350-a5b2774685c08b2ba9de79856f3d96a5de26bd4c.tar.gz scummvm-rg350-a5b2774685c08b2ba9de79856f3d96a5de26bd4c.tar.bz2 scummvm-rg350-a5b2774685c08b2ba9de79856f3d96a5de26bd4c.zip |
Small cleanup
svn-id: r8132
Diffstat (limited to 'simon')
-rw-r--r-- | simon/debug.h | 16 | ||||
-rw-r--r-- | simon/items.cpp | 9 | ||||
-rw-r--r-- | simon/simon.cpp | 38 |
3 files changed, 26 insertions, 37 deletions
diff --git a/simon/debug.h b/simon/debug.h index 03c39ac648..5824a5dc55 100644 --- a/simon/debug.h +++ b/simon/debug.h @@ -240,9 +240,9 @@ static const char *const simon1dos_opcode_name_table[256] = { "|VGA_POINTER_OP_1", /* 176 */ "|VGA_POINTER_OP_2", - "BBI|UNK_177", + "BBI|INVENTORY_DESCRIPTION", "WWBB|PATHFIND", - "BBB|UNK_179", + "BBB|ROOM_DESCRIPTION", /* 180 */ "|FORCE_UNLOCK", "|FORCE_LOCK", @@ -478,9 +478,9 @@ static const char *const simon1talkie_opcode_name_table[256] = { "|VGA_POINTER_OP_1", /* 176 */ "|VGA_POINTER_OP_2", - "BBI|UNK_177", + "BBI|INVENTORY_DESCRIPTION", "WWBB|PATHFIND", - "BBB|UNK_179", + "BBB|ROOM_DESCRIPTION", /* 180 */ "|FORCE_UNLOCK", "|FORCE_LOCK", @@ -716,9 +716,9 @@ static const char *const simon2dos_opcode_name_table[256] = { "|VGA_POINTER_OP_1", /* 176 */ "|VGA_POINTER_OP_2", - "BBI|UNK_177", + "BBI|INVENTORY_DESCRIPTION", "WWBB|PATHFIND", - "BBB|UNK_179", + "BBB|ROOM_DESCRIPTION", /* 180 */ "|FORCE_UNLOCK", "|FORCE_LOCK", @@ -958,9 +958,9 @@ static const char *const simon2talkie_opcode_name_table[256] = { "|VGA_POINTER_OP_1", /* 176 */ "|VGA_POINTER_OP_2", - "BBI|UNK_177", + "BBI|INVENTORY_DESCRIPTION", "WWBB|PATHFIND", - "BBB|UNK_179", + "BBB|ROOM_DESCRIPTION", /* 180 */ "|FORCE_UNLOCK", "|FORCE_LOCK", diff --git a/simon/items.cpp b/simon/items.cpp index 78d08b35c0..9a9f0020a3 100644 --- a/simon/items.cpp +++ b/simon/items.cpp @@ -918,6 +918,7 @@ int SimonState::runScript() { break; case 163:{ /* sound 1 */ + // Is this opcode actually used in games? o_unk_163(getVarOrWord()); } break; @@ -969,7 +970,7 @@ int SimonState::runScript() { } break; - case 177:{ /* Inventory descriptions */ + case 177:{ /* inventory descriptions */ o_inventory_descriptions(); } break; @@ -983,7 +984,7 @@ int SimonState::runScript() { } break; - case 179:{ /* Room descriptions */ + case 179:{ /* room descriptions */ uint b = getVarOrByte(); uint c = getVarOrByte(); uint a = getVarOrByte(); @@ -1035,7 +1036,7 @@ int SimonState::runScript() { } break; - case 185:{ + case 185:{ /* midi sfx file number */ if (_game & GF_SIMON2) goto invalid_opcode; _midi_sfx = getVarOrWord(); @@ -1064,7 +1065,7 @@ int SimonState::runScript() { } break; - case 189:{ + case 189:{ /* clear_op189_flag */ if (!(_game & GF_SIMON2)) goto invalid_opcode; _op_189_flags = 0; diff --git a/simon/simon.cpp b/simon/simon.cpp index 945a0bd5c2..04ca0538b9 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -1142,7 +1142,6 @@ void SimonState::closeTablesFile_gme(File *in) { // not needed } -// Simon1DOS load tables file uint SimonState::loadTextFile_simon1(const char *filename, byte *dst) { File fo; fo.open(filename, _gameDataPath); @@ -2723,8 +2722,7 @@ get_out:; #endif } -void SimonState::o_wait_for_vga(uint a) { - _vga_wait_for = a; +void SimonState::o_wait_for_vga(uint _vga_wait_for) { _timer_1 = 0; _exit_cutscene = false; _skip_speech = false; @@ -3240,43 +3238,33 @@ void SimonState::video_erase(FillOrCopyStruct *fcs) { } VgaSprite *SimonState::find_cur_sprite() { - if (_game & GF_SIMON2) { - VgaSprite *vsp = _vga_sprites; - while (vsp->id) { + VgaSprite *vsp = _vga_sprites; + while (vsp->id) { + if (_game & GF_SIMON2) { if (vsp->id == _vga_cur_sprite_id && vsp->unk7 == _vga_cur_file_id) break; - vsp++; - } - return vsp; - } else { - VgaSprite *vsp = _vga_sprites; - while (vsp->id) { + } else { if (vsp->id == _vga_cur_sprite_id) break; - vsp++; } - return vsp; + vsp++; } + return vsp; } bool SimonState::has_vgastruct_with_id(uint16 id, uint16 file) { - if (_game & GF_SIMON2) { - VgaSprite *vsp = _vga_sprites; - while (vsp->id) { + VgaSprite *vsp = _vga_sprites; + while (vsp->id) { + if (_game & GF_SIMON2) { if (vsp->id == id && vsp->unk7 == file) return true; - vsp++; - } - return false; - } else { - VgaSprite *vsp = _vga_sprites; - while (vsp->id) { + } else { if (vsp->id == id) return true; - vsp++; } - return false; + vsp++; } + return false; } void SimonState::processSpecialKeys() { |