diff options
Diffstat (limited to 'engines/sci/engine/kpathing.cpp')
-rw-r--r-- | engines/sci/engine/kpathing.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp index fd0d710b7b..7d5bf1e03a 100644 --- a/engines/sci/engine/kpathing.cpp +++ b/engines/sci/engine/kpathing.cpp @@ -1655,13 +1655,8 @@ reg_t kAvoidPath(EngineState *s, int funct_nr, int argc, reg_t *argv) { case 3 : { reg_t retval; Polygon *polygon = convert_polygon(s, argv[2]); - - if (polygon->type == POLY_CONTAINED_ACCESS) { - sciprintf("[avoidpath] Warning: containment test performed on contained access polygon\n"); - - // Semantics unknown, assume barred access semantics - polygon->type = POLY_BARRED_ACCESS; - } + // Override polygon type to prevent inverted result for contained access polygons + polygon->type = POLY_BARRED_ACCESS; retval = make_reg(0, contained(start, polygon) != CONT_OUTSIDE); delete polygon; |