GRIM: Fix some missing hotspots with mouse enabled

Originally reported in https://github.com/tobiaspfaff/grim_mouse/issues/9.
This commit is contained in:
Orgad Shaneh 2021-11-02 21:56:10 +02:00 committed by Paweł Kołodziejski
parent ded4ab6c23
commit d3471ef3aa

View File

@ -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);