[Scummvm-git-logs] scummvm master -> c0f4bbdfd06ff37819314cd49ddc71f98fdbe587
AndywinXp
noreply at scummvm.org
Wed Sep 18 07:39:22 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:
c0f4bbdfd0 SCUMM: BASKETBALL: Silence warnings
Commit: c0f4bbdfd06ff37819314cd49ddc71f98fdbe587
https://github.com/scummvm/scummvm/commit/c0f4bbdfd06ff37819314cd49ddc71f98fdbe587
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-09-18T09:39:09+02:00
Commit Message:
SCUMM: BASKETBALL: Silence warnings
Changed paths:
engines/scumm/he/basketball/collision/bball_collision_support_obj.h
engines/scumm/he/basketball/geo_translation.cpp
diff --git a/engines/scumm/he/basketball/collision/bball_collision_support_obj.h b/engines/scumm/he/basketball/collision/bball_collision_support_obj.h
index 0853ce3d490..2a21ae63c10 100644
--- a/engines/scumm/he/basketball/collision/bball_collision_support_obj.h
+++ b/engines/scumm/he/basketball/collision/bball_collision_support_obj.h
@@ -367,8 +367,8 @@ class U32Vector3D : public U32Construct3D<Type> {
public:
U32Vector3D() : U32Construct3D<Type>() {}
U32Vector3D(Type xx, Type yy, Type zz) : U32Construct3D<Type>(xx, yy, zz) {}
- U32Vector3D<Type>(const U32Construct2D<Type> &other) : U32Construct3D<Type>(other.x, other.y, 0) {}
- U32Vector3D<Type>(const U32Construct3D<Type> &other) : U32Construct3D<Type>(other.x, other.y, other.z) {}
+ U32Vector3D(const U32Construct2D<Type> &other) : U32Construct3D<Type>(other.x, other.y, 0) {}
+ U32Vector3D(const U32Construct3D<Type> &other) : U32Construct3D<Type>(other.x, other.y, other.z) {}
U32Vector3D<Type> operator-(const U32Construct2D<Type> &other) const {
U32Vector3D<Type> newVector;
diff --git a/engines/scumm/he/basketball/geo_translation.cpp b/engines/scumm/he/basketball/geo_translation.cpp
index 7b504da6914..7f92e58a83f 100644
--- a/engines/scumm/he/basketball/geo_translation.cpp
+++ b/engines/scumm/he/basketball/geo_translation.cpp
@@ -30,7 +30,6 @@ int LogicHEBasketball::u32_userInitScreenTranslations() {
// Find the angle between the left and bottom baseline in the court image...
_courtAngle = atan(TRANSLATED_MAX_Y / (double)TRANSLATED_MAX_START_X);
assert(_courtAngle != 0);
- assert(_courtAngle != BBALL_M_PI);
// The relationship between the location in the game world and the location in pixels
// from the bottom of the court can be described by the parametric equation:
More information about the Scummvm-git-logs
mailing list