[Scummvm-git-logs] scummvm master -> adac852df953e29e3325920c5fbcdd28f29c5685
kelmer44
noreply at scummvm.org
Fri May 22 14:17:10 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:
adac852df9 PELROCK: Remove redundant assignment. PVS-Studio V1048
Commit: adac852df953e29e3325920c5fbcdd28f29c5685
https://github.com/scummvm/scummvm/commit/adac852df953e29e3325920c5fbcdd28f29c5685
Author: kelmer (kelmer at gmail.com)
Date: 2026-05-22T16:17:02+02:00
Commit Message:
PELROCK: Remove redundant assignment. PVS-Studio V1048
Changed paths:
engines/pelrock/pelrock.cpp
diff --git a/engines/pelrock/pelrock.cpp b/engines/pelrock/pelrock.cpp
index f113573e5a1..96f85fec017 100644
--- a/engines/pelrock/pelrock.cpp
+++ b/engines/pelrock/pelrock.cpp
@@ -1522,7 +1522,6 @@ AlfredDirection PelrockEngine::calculateAlfredsDirection(HotSpot *hotspot) {
if (((_alfredState.y + _alfredState.h) < hotspot->y) ||
(_alfredState.y <= hotspot->y + hotspot->h &&
hotspot->zOrder <= ((399 - _alfredState.y) / 2) + 10)) {
- calculatedDirection = ALFRED_DOWN; // Face DOWN
} else {
calculatedDirection = ALFRED_UP; // Face UP
}
@@ -1540,7 +1539,6 @@ AlfredDirection PelrockEngine::calculateAlfredsDirection(HotSpot *hotspot) {
else if (((_alfredState.y + _alfredState.h) < hotspot->y) ||
(_alfredState.y <= hotspot->y + hotspot->h &&
(hotspot->actionFlags & 0x80) == 0x80)) {
- calculatedDirection = ALFRED_DOWN; // Face DOWN
} else {
calculatedDirection = ALFRED_UP; // Face UP
}
More information about the Scummvm-git-logs
mailing list