[Scummvm-git-logs] scummvm master -> 4dfb4d14737390893907e228af8a49d4e5607d70
mduggan
noreply at scummvm.org
Mon Sep 29 10:15:59 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:
4dfb4d1473 ACCESS: Avoid invalid enum values (PVS-Studio V1016)
Commit: 4dfb4d14737390893907e228af8a49d4e5607d70
https://github.com/scummvm/scummvm/commit/4dfb4d14737390893907e228af8a49d4e5607d70
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2025-09-29T20:15:03+10:00
Commit Message:
ACCESS: Avoid invalid enum values (PVS-Studio V1016)
Changed paths:
engines/access/martian/martian_duct.cpp
diff --git a/engines/access/martian/martian_duct.cpp b/engines/access/martian/martian_duct.cpp
index 44392d4b13c..0bf27f441c1 100644
--- a/engines/access/martian/martian_duct.cpp
+++ b/engines/access/martian/martian_duct.cpp
@@ -1205,7 +1205,7 @@ bool MartianDuct::checkMove10() {
if (_moveAngle != kMoveAngleNorth && _moveAngle != kMoveAngleWest)
return true;
- _moveAngle = (MoveAngle)(_moveAngle - kMoveAngleEast);
+ _moveAngle = (MoveAngle)((_moveAngle - kMoveAngleEast) & 0xff);
}
_playerY = _nextPlayerY;
_playerX = _nextPlayerX;
@@ -1263,7 +1263,7 @@ bool MartianDuct::checkMove12() {
if (_moveAngle != kMoveAngleEast && _moveAngle != kMoveAngleNorth)
return true;
- _moveAngle = (MoveAngle)(_moveAngle - kMoveAngleEast);
+ _moveAngle = (MoveAngle)((_moveAngle - kMoveAngleEast) & 0xff);
}
_playerY = _nextPlayerY;
_playerX = _nextPlayerX;
More information about the Scummvm-git-logs
mailing list