From 9588a6fd31a050f3284b326541c4eedb7c108d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82odziejski?= Date: Sun, 2 Nov 2003 10:12:08 +0000 Subject: [PATCH] fixed warnings svn-id: r11046 --- base/main.cpp | 2 +- sword2/controls.cpp | 2 +- sword2/driver/d_sound.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base/main.cpp b/base/main.cpp index a494715a6ac..9f02ba4350e 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -283,7 +283,7 @@ int main(int argc, char *argv[]) { } // (De)activate fullscreen mode as determined by the config settings - if (ConfMan.getBool("fullscreen") != system->property(OSystem::PROP_GET_FULLSCREEN, 0)) + if (ConfMan.getBool("fullscreen") != (system->property(OSystem::PROP_GET_FULLSCREEN, 0) != 0)) system->property(OSystem::PROP_TOGGLE_FULLSCREEN, 0); // Create the game engine diff --git a/sword2/controls.cpp b/sword2/controls.cpp index 71376c29114..bab8a55943c 100644 --- a/sword2/controls.cpp +++ b/sword2/controls.cpp @@ -842,7 +842,7 @@ public: // we need to update music volume immediately. if (widget == _musicSwitch) { - g_sound->muteMusic(result); + g_sound->muteMusic(result != 0); } else if (widget == _musicSlider) { g_sound->setMusicVolume(result); g_sound->muteMusic(result == 0); diff --git a/sword2/driver/d_sound.h b/sword2/driver/d_sound.h index 8138acbf6f6..8e7fab18c42 100644 --- a/sword2/driver/d_sound.h +++ b/sword2/driver/d_sound.h @@ -76,7 +76,7 @@ private: OSystem::MutexRef _mutex; RateConverter *_converter; - uint32 _panTable[33]; + int32 _panTable[33]; FxHandle _fx[MAXFX]; MusicHandle _music[MAXMUS + 1];