diff options
author | Eugene Sandulenko | 2007-03-10 15:02:39 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-03-10 15:02:39 +0000 |
commit | 9b0bf64448fe5c053f73befe97a12c3193f5fd1b (patch) | |
tree | 645dc96f255fb57f37d92a0533bead17158c5809 | |
parent | 477372de61605c4e47a3f6d4cd0f6d3d25dd5a61 (diff) | |
download | scummvm-rg350-9b0bf64448fe5c053f73befe97a12c3193f5fd1b.tar.gz scummvm-rg350-9b0bf64448fe5c053f73befe97a12c3193f5fd1b.tar.bz2 scummvm-rg350-9b0bf64448fe5c053f73befe97a12c3193f5fd1b.zip |
Silence MSVC8 warnings.
svn-id: r26062
-rw-r--r-- | engines/parallaction/disk.cpp | 2 | ||||
-rw-r--r-- | engines/queen/display.cpp | 2 | ||||
-rw-r--r-- | engines/scumm/player_nes.cpp | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/engines/parallaction/disk.cpp b/engines/parallaction/disk.cpp index 387499a51a..9f98e0b786 100644 --- a/engines/parallaction/disk.cpp +++ b/engines/parallaction/disk.cpp @@ -172,7 +172,7 @@ void Disk::loadCnv(const char *filename, Cnv *cnv) { void Disk::loadTalk(const char *name, Cnv *cnv) { - char* ext = strstr(name, ".talk"); + const char *ext = strstr(name, ".talk"); if (ext != NULL) { // npc talk loadCnv(name, cnv); diff --git a/engines/queen/display.cpp b/engines/queen/display.cpp index 274924d8d9..2a59d32739 100644 --- a/engines/queen/display.cpp +++ b/engines/queen/display.cpp @@ -845,7 +845,7 @@ void Display::decodePCX(const uint8 *src, uint32 srcSize, uint8 *dst, uint16 dst } void Display::decodeLBM(const uint8 *src, uint32 srcSize, uint8 *dst, uint16 dstPitch, uint16 *w, uint16 *h, uint8 *pal, uint16 palStart, uint16 palEnd, uint8 colorBase) { - int planeCount, planePitch; + int planeCount = 0, planePitch = 0; const uint8 *srcEnd = src + srcSize; src += 12; while (src < srcEnd) { diff --git a/engines/scumm/player_nes.cpp b/engines/scumm/player_nes.cpp index 4836ad5629..a59a7437a2 100644 --- a/engines/scumm/player_nes.cpp +++ b/engines/scumm/player_nes.cpp @@ -176,7 +176,7 @@ void Square::Write(int Reg, byte Val) { break; case 4: - Enabled = Val; + Enabled = (Val != 0); if (!Enabled) Timer = 0; break; @@ -294,7 +294,7 @@ void Triangle::Write(int Reg, byte Val) { break; case 4: - Enabled = Val; + Enabled = (Val != 0); if (!Enabled) Timer = 0; break; @@ -391,7 +391,7 @@ void Noise::Write(int Reg, byte Val) { break; case 4: - Enabled = Val; + Enabled = (Val != 0); if (!Enabled) Timer = 0; break; |