aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kohaut2019-01-08 17:36:54 +0100
committerPeter Kohaut2019-01-08 17:37:47 +0100
commit25d3b2bf5b7c972de90599dbd08d2c614bec28c3 (patch)
tree4d5e724d24d373888be0e89c3e725e557bd56837
parent05a4464c01e077fe58d6c7c70d05cdc7c3546378 (diff)
downloadscummvm-rg350-25d3b2bf5b7c972de90599dbd08d2c614bec28c3.tar.gz
scummvm-rg350-25d3b2bf5b7c972de90599dbd08d2c614bec28c3.tar.bz2
scummvm-rg350-25d3b2bf5b7c972de90599dbd08d2c614bec28c3.zip
BLADERUNNER: Replace assert with a debug message
Replaced the assert in pathfinding code so game can be playable.
-rw-r--r--engines/bladerunner/obstacles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/obstacles.cpp b/engines/bladerunner/obstacles.cpp
index 62bb210bd1..e4deaba6fa 100644
--- a/engines/bladerunner/obstacles.cpp
+++ b/engines/bladerunner/obstacles.cpp
@@ -213,7 +213,7 @@ bool Obstacles::mergePolygons(Polygon &polyA, Polygon &polyB) {
if (linePolygonIntersection(polyLine, polyPrimaryType, polySecondary, &intersectionPoint, &polySecondaryIntersectionIndex)) {
if (WITHIN_TOLERANCE(intersectionPoint.x, polyLine.start.x) && WITHIN_TOLERANCE(intersectionPoint.y, polyLine.start.y)) {
warning("Set: %d Scene: %d", _vm->_scene->getSetId(), _vm->_scene->getSceneId());
- assert(0 && "Report instances of this to madmoose!");
+ warning("Report instances of this to madmoose!");
flagAddVertexToVertexList = false;
polyMerged.verticeCount--; // TODO(madmoose): How would this work?
} else {