I recommend turning on signedness warnings, and honoring them :-)

svn-id: r12493
This commit is contained in:
Max Horn 2004-01-18 18:42:44 +00:00
parent 8f465b96bb
commit c44bdf033e
3 changed files with 2 additions and 3 deletions

View File

@ -412,7 +412,6 @@ void IMuseDigital::parseScriptCmds(int a, int b, int c, int d, int e, int f, int
int cmd = a;
int soundId = b;
int sub_cmd = c;
int chan = -1;
if (!cmd)
return;

View File

@ -37,7 +37,7 @@ void IMuseDigital::setDigMusicState(int stateId) {
}
if (num == -1) {
for (l = 0; _digStateMusicMap[l].roomId != -1; l++) {
for (l = 0; /* _digStateMusicMap[l].roomId != -1 */ ; l++) { // FIXME comparing an unsigned int with -1, are we? :-)
if ((_digStateMusicMap[l].roomId == stateId)) {
break;
}

View File

@ -148,7 +148,7 @@ const imuseRoomMap _digStateMusicMap[] = {
{45, 1, 0, 0, 0, 0 },
{87, 1, 0, 0, 0, 0 },
{111, 1, 0, 0, 0, 0 },
{-1, 1, 0, 0, 0, 0 }
{0xff, 1, 0, 0, 0, 0 }
};
const imuseDigTable _digStateMusicTable[] = {