aboutsummaryrefslogtreecommitdiff
path: root/scumm/player_v2.cpp
diff options
context:
space:
mode:
authorJamieson Christian2003-05-26 22:19:12 +0000
committerJamieson Christian2003-05-26 22:19:12 +0000
commitb47d76222f66e86165bdae0ba0eb8ccd7f0340bd (patch)
tree5c5ded3a569cd19f6e7f70b089e1cb490512e657 /scumm/player_v2.cpp
parent0cd4e3c6c04f868fa3dafae5eaf02e1e845d51e8 (diff)
downloadscummvm-rg350-b47d76222f66e86165bdae0ba0eb8ccd7f0340bd.tar.gz
scummvm-rg350-b47d76222f66e86165bdae0ba0eb8ccd7f0340bd.tar.bz2
scummvm-rg350-b47d76222f66e86165bdae0ba0eb8ccd7f0340bd.zip
Fixed shadow variable
svn-id: r8025
Diffstat (limited to 'scumm/player_v2.cpp')
-rw-r--r--scumm/player_v2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/player_v2.cpp b/scumm/player_v2.cpp
index 0bd6535952..71cf5e8233 100644
--- a/scumm/player_v2.cpp
+++ b/scumm/player_v2.cpp
@@ -537,7 +537,7 @@ void Player_V2::execute_cmd(ChannelInfo *channel) {
opcode = *script_ptr++;
note = opcode & 0x7f;
if (note != 0x7f) {
- uint16 freq;
+ uint16 myfreq;
dest_channel->d.time_left = channel->d.time_left;
dest_channel->d.note_length =
channel->d.time_left - dest_channel->d.inter_note_pause;
@@ -550,11 +550,11 @@ void Player_V2::execute_cmd(ChannelInfo *channel) {
dest_channel->d.hull_counter = 1;
if (pcjr && dest_channel == &channels[3]) {
dest_channel->d.hull_curve = 180 + note * 12;
- freq = 384 - 64 * octave;
+ myfreq = 384 - 64 * octave;
} else {
- freq = freqs_table[note] >> octave;
+ myfreq = freqs_table[note] >> octave;
}
- dest_channel->d.freq = dest_channel->d.base_freq = freq;
+ dest_channel->d.freq = dest_channel->d.base_freq = myfreq;
}
if ((opcode & 0x80) != 0)
goto end;