[Scummvm-git-logs] scummvm master -> fdb23e74cef0c70e08c548f115a5fd3a5a6f6e45
digitall
noreply at scummvm.org
Mon Oct 14 01:48:45 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
fdb23e74ce SCUMM: BASKETBALL: Fix Duplicated Branch GCC Compiler Warning
Commit: fdb23e74cef0c70e08c548f115a5fd3a5a6f6e45
https://github.com/scummvm/scummvm/commit/fdb23e74cef0c70e08c548f115a5fd3a5a6f6e45
Author: D G Turner (digitall at scummvm.org)
Date: 2024-10-14T02:48:13+01:00
Commit Message:
SCUMM: BASKETBALL: Fix Duplicated Branch GCC Compiler Warning
Changed paths:
engines/scumm/he/basketball/geo_translation.cpp
diff --git a/engines/scumm/he/basketball/geo_translation.cpp b/engines/scumm/he/basketball/geo_translation.cpp
index 9fa07c9515b..a8f5f51e782 100644
--- a/engines/scumm/he/basketball/geo_translation.cpp
+++ b/engines/scumm/he/basketball/geo_translation.cpp
@@ -233,9 +233,12 @@ int LogicHEBasketball::u32_userComputePointsForPixels(int pixels, int screenYPos
if (pixelsFromBottom < 0) {
courtWidth = TRANSLATED_NEAR_MAX_X;
+// FIXME: Remove duplicated condition branch?
+#if 0
} else if (pixelsFromBottom < TRANSLATED_MAX_Y) {
// Find the width of the court in pixels at the current y coordinate...
courtWidth = TRANSLATED_NEAR_MAX_X - (2.0 * (pixelsFromBottom / tan(courtAngle)));
+#endif
} else {
// Find the width of the court in pixels at the current y coordinate...
courtWidth = TRANSLATED_NEAR_MAX_X - (2.0 * (pixelsFromBottom / tan(courtAngle)));
More information about the Scummvm-git-logs
mailing list