TWP: Fix issue with walkbox

This commit is contained in:
scemino 2024-02-12 21:55:34 +01:00 committed by Eugene Sandulenko
parent 59f09a8736
commit 3eb969ce85

View File

@ -115,8 +115,6 @@ static Common::Array<Walkbox> merge(const Common::Array<Walkbox> &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;
}