diff options
author | Travis Howell | 2003-10-21 10:34:56 +0000 |
---|---|---|
committer | Travis Howell | 2003-10-21 10:34:56 +0000 |
commit | e4813cfab53916f996b2610b58436a2aac939e85 (patch) | |
tree | ae93c3bf5f4fbbd1e8e625f9d3daf51e3448c6c6 | |
parent | 54fc5335c086a6f421fa116be7da2ecd74cf2e67 (diff) | |
download | scummvm-rg350-e4813cfab53916f996b2610b58436a2aac939e85.tar.gz scummvm-rg350-e4813cfab53916f996b2610b58436a2aac939e85.tar.bz2 scummvm-rg350-e4813cfab53916f996b2610b58436a2aac939e85.zip |
Rename a few vars
svn-id: r10928
-rw-r--r-- | simon/items.cpp | 6 | ||||
-rw-r--r-- | simon/vga.cpp | 44 |
2 files changed, 25 insertions, 25 deletions
diff --git a/simon/items.cpp b/simon/items.cpp index 841eb6da38..c0a00f14dd 100644 --- a/simon/items.cpp +++ b/simon/items.cpp @@ -1551,11 +1551,11 @@ void SimonEngine::o_unk_120(uint a) { } } -void SimonEngine::o_play_sound(uint a) { +void SimonEngine::o_play_sound(uint sound_id) { if (_game == GAME_SIMON1DOS) - playSting(a); + playSting(sound_id); else - _sound->playEffects(a); + _sound->playEffects(sound_id); } void SimonEngine::o_unk_160(uint a) { diff --git a/simon/vga.cpp b/simon/vga.cpp index cd58ae62a4..dbe2f84e52 100644 --- a/simon/vga.cpp +++ b/simon/vga.cpp @@ -267,7 +267,7 @@ void SimonEngine::vc_2_call() { } void SimonEngine::vc_3_new_sprite() { - uint16 a, b, c, d, e, f; + uint16 a, f, base_color, x, y, vga_struct_id; uint16 res; VgaSprite *vsp; VgaPointersEntry *vpe; @@ -278,32 +278,32 @@ void SimonEngine::vc_3_new_sprite() { if (_game & GF_SIMON2) { f = vc_read_next_word(); /* 0 */ - b = vc_read_next_word(); /* 2 */ + vga_struct_id = vc_read_next_word(); /* 2 */ } else { - b = vc_read_next_word(); /* 2 */ - f = b / 100; + vga_struct_id = vc_read_next_word(); /* 2 */ + f = vga_struct_id / 100; } - c = vc_read_next_word(); /* 4 */ - d = vc_read_next_word(); /* 6 */ - e = vc_read_next_word(); /* 8 */ + x = vc_read_next_word(); /* 4 */ + y = vc_read_next_word(); /* 6 */ + base_color = vc_read_next_word(); /* 8 */ /* 2nd param ignored with simon1 */ - if (has_vgastruct_with_id(b, f)) + if (has_vgastruct_with_id(vga_struct_id, f)) return; vsp = _vga_sprites; while (vsp->id) vsp++; - vsp->base_color = e; + vsp->base_color = base_color; vsp->unk6 = a; vsp->priority = 0; vsp->unk4 = 0; vsp->image = 0; - vsp->x = c; - vsp->y = d; - vsp->id = b; + vsp->x = x; + vsp->y = y; + vsp->id = vga_struct_id; vsp->unk7 = res = f; old_file_1 = _cur_vga_file_1; @@ -324,7 +324,7 @@ void SimonEngine::vc_3_new_sprite() { p = pp + READ_BE_UINT16(&((VgaFile1Header *) pp)->hdr2_start); p = pp + READ_BE_UINT16(&((VgaFile1Header2 *) p)->id_table); - while (READ_BE_UINT16(&((VgaFile1Struct0x6 *) p)->id) != b) + while (READ_BE_UINT16(&((VgaFile1Struct0x6 *) p)->id) != vga_struct_id) p += sizeof(VgaFile1Struct0x6); #ifdef DUMP_FILE_NR @@ -347,9 +347,9 @@ void SimonEngine::vc_3_new_sprite() { } #endif - //dump_vga_script(_cur_vga_file_1 + READ_BE_UINT16(&((VgaFile1Struct0x6*)p)->script_offs), res, b); + //dump_vga_script(_cur_vga_file_1 + READ_BE_UINT16(&((VgaFile1Struct0x6*)p)->script_offs), res, vga_struct_id); - add_vga_timer(gss->VGA_DELAY_BASE, _cur_vga_file_1 + READ_BE_UINT16(&((VgaFile1Struct0x6 *) p)->script_offs), b, res); + add_vga_timer(gss->VGA_DELAY_BASE, _cur_vga_file_1 + READ_BE_UINT16(&((VgaFile1Struct0x6 *) p)->script_offs), vga_struct_id, res); _cur_vga_file_1 = old_file_1; } @@ -1530,18 +1530,18 @@ void SimonEngine::vc_51_clear_hitarea_bit_0x40() { } void SimonEngine::vc_52_play_sound() { - uint16 a = vc_read_next_word(); + uint16 sound_id = vc_read_next_word(); if (_game == GAME_SIMON1DOS) { - playSting(a); + playSting(sound_id); } else if (!(_game & GF_SIMON2)) { - _sound->playEffects(a); + _sound->playEffects(sound_id); } else { - if (a >= 0x8000) { - a = -a; - _sound->playAmbient(a); + if (sound_id >= 0x8000) { + sound_id = -sound_id; + _sound->playAmbient(sound_id); } else { - _sound->playEffects(a); + _sound->playEffects(sound_id); } } } |