Permalink
Browse files

BLADERUNNER: Replace assert with a debug message

Replaced the assert in pathfinding code so game can be playable.
  • Loading branch information...
peterkohaut committed Jan 8, 2019
1 parent 05a4464 commit 25d3b2bf5b7c972de90599dbd08d2c614bec28c3
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 {

0 comments on commit 25d3b2b

Please sign in to comment.