[Scummvm-git-logs] scummvm master -> 5f06ca30f7d2e98ef0a578244abf79a6ffba50f5
sev-
noreply at scummvm.org
Fri Feb 6 20:51:34 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:
5f06ca30f7 JANITORIAL: WAGE: resolve signed/unsigned mismatches
Commit: 5f06ca30f7d2e98ef0a578244abf79a6ffba50f5
https://github.com/scummvm/scummvm/commit/5f06ca30f7d2e98ef0a578244abf79a6ffba50f5
Author: Michael (michael_kuerbis at web.de)
Date: 2026-02-06T21:51:30+01:00
Commit Message:
JANITORIAL: WAGE: resolve signed/unsigned mismatches
Changed paths:
engines/wage/combat.cpp
engines/wage/debugtools.cpp
diff --git a/engines/wage/combat.cpp b/engines/wage/combat.cpp
index c19bff567b1..7e2c449bb19 100644
--- a/engines/wage/combat.cpp
+++ b/engines/wage/combat.cpp
@@ -569,7 +569,7 @@ void WageEngine::performMove(Chr *chr, int validMoves) {
// if rand(0, 99) >= stopChance, player failed to stop them.
// result: enemy vanishes from the room they just entered (escapes).
- if (_rnd->getRandomNumber(99) >= stopChance) {
+ if (_rnd->getRandomNumberRngSigned(0, 99) >= stopChance) {
_world->move(chr, _world->_storageScene);
}
}
diff --git a/engines/wage/debugtools.cpp b/engines/wage/debugtools.cpp
index 7ce6d2f56ba..b1e122928ee 100644
--- a/engines/wage/debugtools.cpp
+++ b/engines/wage/debugtools.cpp
@@ -133,7 +133,7 @@ void showDesignScriptWindow(Design *d) {
for (uint i = 0; i < d->_drawOps.size(); i++) {
const DrawOp &op = d->_drawOps[i];
// check if this is the current step
- bool isCurrent = (_state->_currentStep == i + 1);
+ bool isCurrent = (_state->_currentStep == static_cast<int>(i + 1));
if (isCurrent) {
ImVec2 pos = ImGui::GetCursorScreenPos();
@@ -213,7 +213,7 @@ void showDesignViewer(Designed *item, const char *typeStr) {
tmp.free();
}
- uint totalSteps = d->_drawOps.size();
+ int totalSteps = static_cast<int>(d->_drawOps.size());
if (ImGui::Button(ICON_MS_SKIP_PREVIOUS)) {
if (_state->_currentStep > 1)
More information about the Scummvm-git-logs
mailing list