Skip to content

Commit

Permalink
GRIM/EMI: Fix bridge height check. See residualvm#842
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Pfaff authored and Akz- committed Jun 15, 2014
1 parent 08f6e81 commit 3ec2347
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engines/grim/sector.cpp
Expand Up @@ -392,6 +392,7 @@ Common::List<Math::Line3d> Sector::getBridgesTo(Sector *sector) const {
}

// All the bridges should be at the same height on both sectors.
it = bridges.begin();
while (it != bridges.end()) {
if (g_grim->getGameType() == GType_MONKEY4) {
if (fabs(getProjectionToPlane((*it).begin()).y() - sector->getProjectionToPlane((*it).begin()).y()) > 0.01f ||
Expand Down

0 comments on commit 3ec2347

Please sign in to comment.