From c955722c321087400e3be084be89609fa6b99ae2 Mon Sep 17 00:00:00 2001 From: obligaron Date: Sun, 26 Jun 2022 22:56:53 +0200 Subject: [PATCH] Fix portal don't deactive on set levels --- Source/portal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/portal.cpp b/Source/portal.cpp index 1bfb7e317..18ef3dda7 100644 --- a/Source/portal.cpp +++ b/Source/portal.cpp @@ -103,7 +103,7 @@ void DeactivatePortal(int i) bool PortalOnLevel(int i) { - if (Portals[i].level == currlevel) + if (Portals[i].setlvl == setlevel && Portals[i].level == setlevel ? static_cast(setlvlnum) : currlevel) return true; return leveltype == DTYPE_TOWN;