From 25d3b2bf5b7c972de90599dbd08d2c614bec28c3 Mon Sep 17 00:00:00 2001 From: Peter Kohaut Date: Tue, 8 Jan 2019 17:36:54 +0100 Subject: BLADERUNNER: Replace assert with a debug message Replaced the assert in pathfinding code so game can be playable. --- engines/bladerunner/obstacles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3