From 3eb969ce8509f827b73d31f239aed7c642ebbb63 Mon Sep 17 00:00:00 2001 From: scemino Date: Mon, 12 Feb 2024 21:55:34 +0100 Subject: [PATCH] TWP: Fix issue with walkbox --- engines/twp/room.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/engines/twp/room.cpp b/engines/twp/room.cpp index 2d5f7fb6974..704f744f3a1 100644 --- a/engines/twp/room.cpp +++ b/engines/twp/room.cpp @@ -115,8 +115,6 @@ static Common::Array merge(const Common::Array &walkboxes) { const Walkbox &wb = walkboxes[i]; if (wb.isVisible()) { subjects.push_back(toPolygon(wb)); - } else { - clips.push_back(toPolygon(wb)); } } @@ -458,7 +456,7 @@ void Room::walkboxHidden(const Common::String &name, bool hidden) { Walkbox &wb = _walkboxes[i]; if (wb._name == name) { wb.setVisible(!hidden); - // 1 walkbox has change so update merged polygon + // 1 walkbox has changed so update merged polygon _pathFinder.setDirty(true); return; }