[Scummvm-git-logs] scummvm master -> 1d5e260c4b538a5cf1a865b57f3ccf62ce6ff821

yuv422 noreply at scummvm.org
Thu Dec 12 21:43:16 UTC 2024


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:
1d5e260c4b DARKSEED: rewrite Urn SFX condition in a more natural way. Hopefully this makes Coverity happy again.


Commit: 1d5e260c4b538a5cf1a865b57f3ccf62ce6ff821
    https://github.com/scummvm/scummvm/commit/1d5e260c4b538a5cf1a865b57f3ccf62ce6ff821
Author: Eric Fry (yuv422 at reversedgames.com)
Date: 2024-12-13T08:42:00+11:00

Commit Message:
DARKSEED: rewrite Urn SFX condition in a more natural way. Hopefully this makes Coverity happy again.

Changed paths:
    engines/darkseed/usecode.cpp


diff --git a/engines/darkseed/usecode.cpp b/engines/darkseed/usecode.cpp
index d04934e41ef..3ae8f7d26f4 100644
--- a/engines/darkseed/usecode.cpp
+++ b/engines/darkseed/usecode.cpp
@@ -257,7 +257,7 @@ void Darkseed::UseCode::useCode(int objNum) {
 		_inventory.addItem(26);
 		return;
 	}
-	if ((162 < objNum) && (objNum < 169)) {
+	if (objNum > 162 && objNum < 169) {
 		g_engine->playSound(47, 5, -1);
 	}
 	if (objNum == 175) { // car horn




More information about the Scummvm-git-logs mailing list