aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-13 09:42:09 +1000
committerPaul Gilbert2012-05-13 09:43:11 +1000
commitc35b5397168299176eab69622044a98c8995a369 (patch)
treed980995455c7daf141a3b8998432ab7752f252d9
parent0a835de46805a3f8db4c68b3081fdf376e03a567 (diff)
downloadscummvm-rg350-c35b5397168299176eab69622044a98c8995a369.tar.gz
scummvm-rg350-c35b5397168299176eab69622044a98c8995a369.tar.bz2
scummvm-rg350-c35b5397168299176eab69622044a98c8995a369.zip
TONY: Some further initialisation of object fields
-rw-r--r--engines/tony/gfxengine.cpp11
-rw-r--r--engines/tony/sound.cpp15
2 files changed, 26 insertions, 0 deletions
diff --git a/engines/tony/gfxengine.cpp b/engines/tony/gfxengine.cpp
index 1b09e00956..f6d047d267 100644
--- a/engines/tony/gfxengine.cpp
+++ b/engines/tony/gfxengine.cpp
@@ -90,6 +90,17 @@ RMGfxEngine::RMGfxEngine() {
m_bigBuf.OffsetY(RM_SKIPY);
csMainLoop = NULL;
+ m_nCurLoc = 0;
+ m_curAction = TA_GOTO;
+ m_curActionObj = 0;
+ m_nWipeType = 0;
+ m_hWipeEvent = 0;
+ m_nWipeStep = 0;
+ m_bMustEnterMenu = false;
+ m_bWiping = false;
+ m_bGUIOption = false;
+ m_bGUIInterface = false;
+ m_bGUIInventory = false;
}
RMGfxEngine::~RMGfxEngine() {
diff --git a/engines/tony/sound.cpp b/engines/tony/sound.cpp
index 0658c99f48..01968ea579 100644
--- a/engines/tony/sound.cpp
+++ b/engines/tony/sound.cpp
@@ -775,6 +775,8 @@ uint32 CODECADPCMSTEREO::Decompress(Common::File &fp, void *buf, uint32 dwSize)
FPSOUND::FPSOUND() {
lpDS = NULL;
lpDSBPrimary = NULL;
+ hwnd = 0;
+ bSoundSupported = false;
}
@@ -1028,6 +1030,19 @@ FPSFX::FPSFX(LPDIRECTSOUND lpds, HWND hWnd, bool bSoundOn) {
return;
/* Poiché non abbiamo ancora nessun dato sull'effetto sonoro, non possiamo fare nulla */
+#else
+ bIsVoice = false;
+ lastVolume = 0;
+ dwFreq = 0;
+ hEndOfBuffer = CORO_INVALID_PID_VALUE;
+ bFileLoaded = false;
+ bSoundSupported = false;
+ bLoop = false;
+ bPaused = false;
+ bStereo = false;
+ b16bit = false;
+ bIsPlaying = false;
+ bIsVoice = false;
#endif
}