[Scummvm-git-logs] scummvm master -> 63052684897675be4a40af6cd9d28d419ee80e6c
kelmer44
noreply at scummvm.org
Fri May 22 12:24:52 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:
6305268489 PELROCK: Remove conditions that are always true. PVS-CODE V998, V1110
Commit: 63052684897675be4a40af6cd9d28d419ee80e6c
https://github.com/scummvm/scummvm/commit/63052684897675be4a40af6cd9d28d419ee80e6c
Author: kelmer (kelmer at gmail.com)
Date: 2026-05-22T14:24:44+02:00
Commit Message:
PELROCK: Remove conditions that are always true. PVS-CODE V998, V1110
Changed paths:
engines/pelrock/pelrock.cpp
diff --git a/engines/pelrock/pelrock.cpp b/engines/pelrock/pelrock.cpp
index 1bd056ff7f3..8a0b45f9991 100644
--- a/engines/pelrock/pelrock.cpp
+++ b/engines/pelrock/pelrock.cpp
@@ -995,7 +995,7 @@ void PelrockEngine::drawAlfred(byte *buf) {
if (_room->_pixelsShadows != nullptr) {
byte shadowLevel = 0xFF; // 0xFF = no shadow
int feetY = _alfredState.y;
- if (feetY >= 0 && feetY < 400 && _room->_pixelsShadows != nullptr) {
+ if (feetY < 400) {
for (int col = 0; col < finalWidth; col++) {
int checkX = _alfredState.x + col;
if (checkX >= 0 && checkX < 640) {
@@ -1107,7 +1107,7 @@ void PelrockEngine::drawNextFrame(Sprite *sprite) {
// Trigger ring on phone on every start of animation 2 in room 9
if (_room->_currentRoomNumber == 9 && sprite->index == 3) {
- if (sprite->curAnimIndex == 1 && animData.curLoop == 0) {
+ if (sprite->curAnimIndex == 1) {
byte soundFileIndex = _room->_roomSfx[2];
_sound->playSound(soundFileIndex, 2);
}
More information about the Scummvm-git-logs
mailing list