[Scummvm-git-logs] scummvm master -> 832a07850f1a62684b0cd2745d09a6ab64ba56cd
kelmer44
noreply at scummvm.org
Fri May 22 14:15:19 UTC 2026
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:
832a07850f PELROCK: Remove unused parameters for inventory check. PVS-Studio V751
Commit: 832a07850f1a62684b0cd2745d09a6ab64ba56cd
https://github.com/scummvm/scummvm/commit/832a07850f1a62684b0cd2745d09a6ab64ba56cd
Author: kelmer (kelmer at gmail.com)
Date: 2026-05-22T16:15:09+02:00
Commit Message:
PELROCK: Remove unused parameters for inventory check. PVS-Studio V751
Changed paths:
engines/pelrock/pelrock.cpp
engines/pelrock/pelrock.h
diff --git a/engines/pelrock/pelrock.cpp b/engines/pelrock/pelrock.cpp
index 8a0b45f9991..f113573e5a1 100644
--- a/engines/pelrock/pelrock.cpp
+++ b/engines/pelrock/pelrock.cpp
@@ -599,7 +599,7 @@ void PelrockEngine::checkMouse() {
} else if (_actionPopupState.isAlfredUnder && actionClicked != NO_ACTION) {
useOnAlfred(_state->selectedInventoryItem);
} else if (_inventoryOverlayState.isActive && _inventoryOverlayState.posInInventorySelectionArea(_events->_releaseX, _events->_releaseY)) {
- int item = checkMouseClickInventoryOverlay(_events->_releaseX, _events->_releaseY);
+ int item = checkMouseClickInventoryOverlay(_events->_releaseX);
_state->selectedInventoryItem = item;
if (_actionPopupState.isAlfredUnder) {
useOnAlfred(item);
@@ -1283,7 +1283,7 @@ void PelrockEngine::showActionBalloon(int posx, int posy, int curFrame) {
showInventoryOverlay();
if (_inventoryOverlayState.posInInventorySelectionArea(_events->_mouseX, _events->_mouseY)) {
_inventoryOverlayState.flashingIconIndex = -1;
- checkMouseOverInventoryOverlay(_events->_mouseX, _events->_mouseY);
+ checkMouseOverInventoryOverlay(_events->_mouseX);
}
}
@@ -1405,7 +1405,7 @@ void PelrockEngine::showInventoryOverlay() {
}
}
-void PelrockEngine::checkMouseOverInventoryOverlay(int x, int y) {
+void PelrockEngine::checkMouseOverInventoryOverlay(int x) {
if (x < 20) {
if (_inventoryOverlayState.invStartingPos > 0) {
_inventoryOverlayState.invStartingPos--;
@@ -1425,7 +1425,7 @@ void PelrockEngine::checkMouseOverInventoryOverlay(int x, int y) {
}
}
-int PelrockEngine::checkMouseClickInventoryOverlay(int x, int y) {
+int PelrockEngine::checkMouseClickInventoryOverlay(int x) {
if (x < 20) {
return -1;
diff --git a/engines/pelrock/pelrock.h b/engines/pelrock/pelrock.h
index 70859e4d027..91254d1e19f 100644
--- a/engines/pelrock/pelrock.h
+++ b/engines/pelrock/pelrock.h
@@ -106,8 +106,8 @@ private:
void showInventoryOverlay();
- void checkMouseOverInventoryOverlay(int x, int y);
- int checkMouseClickInventoryOverlay(int x, int y);
+ void checkMouseOverInventoryOverlay(int x);
+ int checkMouseClickInventoryOverlay(int x);
void gameLoop();
void firstScene();
More information about the Scummvm-git-logs
mailing list