[Scummvm-git-logs] scummvm master -> d3471ef3aaf30c7138e84ccee8d3349181007930
aquadran
aquadran at gmail.com
Tue Nov 2 20:32:32 UTC 2021
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:
d3471ef3aa GRIM: Fix some missing hotspots with mouse enabled
Commit: d3471ef3aaf30c7138e84ccee8d3349181007930
https://github.com/scummvm/scummvm/commit/d3471ef3aaf30c7138e84ccee8d3349181007930
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-11-02T21:32:29+01:00
Commit Message:
GRIM: Fix some missing hotspots with mouse enabled
Originally reported in https://github.com/tobiaspfaff/grim_mouse/issues/9.
Changed paths:
engines/grim/sector.cpp
diff --git a/engines/grim/sector.cpp b/engines/grim/sector.cpp
index c02e493a8c..31ca1db42a 100644
--- a/engines/grim/sector.cpp
+++ b/engines/grim/sector.cpp
@@ -375,8 +375,8 @@ Common::List<Math::Line3d> Sector::getBridgesTo(Sector *sector) const {
delta_b2 = bridge.end() - line.begin();
Math::Vector3d cross_b1 = Math::Vector3d::crossProduct(edge, delta_b1);
Math::Vector3d cross_b2 = Math::Vector3d::crossProduct(edge, delta_b2);
- bool b1_out = cross_b1.dotProduct(_normal) < 0;
- bool b2_out = cross_b2.dotProduct(_normal) < 0;
+ bool b1_out = cross_b1.dotProduct(_normal) < -1e-7;
+ bool b2_out = cross_b2.dotProduct(_normal) < -1e-7;
bool useXZ = (g_grim->getGameType() == GType_MONKEY4);
More information about the Scummvm-git-logs
mailing list