[Scummvm-git-logs] scummvm master -> a944cc1af89a4e06fde95ab1d110f91d31618781

digitall noreply at scummvm.org
Mon May 22 23:43:05 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a944cc1af8 VCRUISE: Fix Parantheses Needed GCC Compiler Warning


Commit: a944cc1af89a4e06fde95ab1d110f91d31618781
    https://github.com/scummvm/scummvm/commit/a944cc1af89a4e06fde95ab1d110f91d31618781
Author: D G Turner (digitall at scummvm.org)
Date: 2023-05-23T00:41:55+01:00

Commit Message:
VCRUISE: Fix Parantheses Needed GCC Compiler Warning

This will need checking for correct grouping by elasota, so have
added FIXME comment.

Changed paths:
    engines/vcruise/runtime.cpp


diff --git a/engines/vcruise/runtime.cpp b/engines/vcruise/runtime.cpp
index c004fed741e..c894bb615a2 100644
--- a/engines/vcruise/runtime.cpp
+++ b/engines/vcruise/runtime.cpp
@@ -3475,7 +3475,8 @@ void Runtime::triggerSound(bool looping, SoundInstance &snd, int32 volume, int32
 	}
 
 	// Construct looping stream if needed and none exists
-	if (looping && !cache->loopingStream || oldLoopingType == kSoundLoopingTypeTerminated) {
+	// FIXME: Bracket group in following if statement needs confirming as intended form...
+	if ((looping && !cache->loopingStream) || oldLoopingType == kSoundLoopingTypeTerminated) {
 		cache->player.reset();
 		cache->loopingStream.reset();
 		cache->loopingStream.reset(new Audio::LoopingAudioStream(cache->stream.get(), 0, DisposeAfterUse::NO, true));




More information about the Scummvm-git-logs mailing list