[Scummvm-git-logs] scummvm master -> 28a95a1ed4ec7b6c93018041bacf40629f119421

digitall noreply at scummvm.org
Sun Jun 15 21:13:35 UTC 2025


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

Summary:
28a95a1ed4 SLUDGE: Fix Set But Unused Variable GCC Compiler Warning


Commit: 28a95a1ed4ec7b6c93018041bacf40629f119421
    https://github.com/scummvm/scummvm/commit/28a95a1ed4ec7b6c93018041bacf40629f119421
Author: D G Turner (digitall at scummvm.org)
Date: 2025-06-15T22:12:56+01:00

Commit Message:
SLUDGE: Fix Set But Unused Variable GCC Compiler Warning

Changed paths:
    engines/sludge/event.cpp


diff --git a/engines/sludge/event.cpp b/engines/sludge/event.cpp
index 9dd57251495..948b8479b61 100644
--- a/engines/sludge/event.cpp
+++ b/engines/sludge/event.cpp
@@ -72,7 +72,7 @@ void EventManager::kill() {
 
 void EventManager::checkInput() {
 	float cameraZoom = _vm->_gfxMan->getCamZoom();
-	static bool fakeRightclick = false;
+	//static bool fakeRightclick = false;
 	Common::Event event;
 
 	/* Check for events */
@@ -94,10 +94,10 @@ void EventManager::checkInput() {
 		case Common::EVENT_LBUTTONDOWN:
 			if (g_system->getEventManager()->getModifierState() & Common::KBD_CTRL) {
 				_input.rightClick = true;
-				fakeRightclick = true;
+				//fakeRightclick = true;
 			} else {
 				_input.leftClick = true;
-				fakeRightclick = false;
+				//fakeRightclick = false;
 			}
 
 			_input.mouseX = event.mouse.x * cameraZoom;




More information about the Scummvm-git-logs mailing list