aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/player_v2.cpp
diff options
context:
space:
mode:
authorMax Horn2006-04-12 14:54:12 +0000
committerMax Horn2006-04-12 14:54:12 +0000
commitcf202049ff85bb63fcb0990f81ba173d1ab4d7c8 (patch)
tree50366bcd6fdc066fc35d398dd23ec7f68c8dd616 /engines/scumm/player_v2.cpp
parent151b38a6e5d25bacb99d25326e6b2e09c75cad7c (diff)
downloadscummvm-rg350-cf202049ff85bb63fcb0990f81ba173d1ab4d7c8.tar.gz
scummvm-rg350-cf202049ff85bb63fcb0990f81ba173d1ab4d7c8.tar.bz2
scummvm-rg350-cf202049ff85bb63fcb0990f81ba173d1ab4d7c8.zip
Fixing mismatch between format strings and data on some systems
svn-id: r21827
Diffstat (limited to 'engines/scumm/player_v2.cpp')
-rw-r--r--engines/scumm/player_v2.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/scumm/player_v2.cpp b/engines/scumm/player_v2.cpp
index 9423fb773c..e8abbe1e03 100644
--- a/engines/scumm/player_v2.cpp
+++ b/engines/scumm/player_v2.cpp
@@ -566,14 +566,14 @@ void Player_V2::execute_cmd(ChannelInfo *channel) {
switch (opcode) {
case 0xf8: // set hull curve
debug(7, "channels[%lu]: hull curve %2d",
- channel - _channels, *script_ptr);
+ (long)(channel - _channels), *script_ptr);
channel->d.hull_curve = hull_offsets[*script_ptr / 2];
script_ptr++;
break;
case 0xf9: // set freqmod curve
debug(7, "channels[%lu]: freqmod curve %2d",
- channel - _channels, *script_ptr);
+ (long)(channel - _channels), *script_ptr);
channel->d.freqmod_table = freqmod_offsets[*script_ptr / 4];
channel->d.freqmod_modulo = freqmod_lengths[*script_ptr / 4];
script_ptr++;
@@ -644,7 +644,7 @@ void Player_V2::execute_cmd(ChannelInfo *channel) {
value = READ_LE_UINT16 (script_ptr);
channel->array[opcode / 2] = value;
debug(7, "channels[%lu]: set param %2d = %5d",
- channel - &_channels[0], opcode, value);
+ (long)(channel - _channels), opcode, value);
script_ptr += 2;
if (opcode == 14) {
/* tempo var */
@@ -672,7 +672,7 @@ void Player_V2::execute_cmd(ChannelInfo *channel) {
note &= 0x7f;
if (note == 0x7f) {
debug(8, "channels[%lu]: pause %d",
- channel - _channels, channel->d.time_left);
+ (long)(channel - _channels), channel->d.time_left);
goto end;
}
} else {
@@ -681,7 +681,7 @@ void Player_V2::execute_cmd(ChannelInfo *channel) {
if ((opcode & 0x10)) {
debug(8, "channels[%lu]: pause %d",
- channel - _channels, channel->d.time_left);
+ (long)(channel - _channels), channel->d.time_left);
goto end;
}
@@ -690,7 +690,7 @@ void Player_V2::execute_cmd(ChannelInfo *channel) {
}
debug(8, "channels[%lu]: @%04lx note: %3d+%d len: %2d hull: %d mod: %d/%d/%d %s",
- dest_channel - channel, script_ptr ? script_ptr - _current_data - 2 : 0,
+ (long)(dest_channel - channel), (long)(script_ptr ? script_ptr - _current_data - 2 : 0),
note, (signed short) dest_channel->d.transpose, channel->d.time_left,
dest_channel->d.hull_curve, dest_channel->d.freqmod_table,
dest_channel->d.freqmod_incr,dest_channel->d.freqmod_multiplier,