Browse Source

Fix portal don't deactive on set levels

pull/4805/head
obligaron 4 years ago committed by Anders Jenbo
parent
commit
c955722c32
  1. 2
      Source/portal.cpp

2
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<int>(setlvlnum) : currlevel)
return true;
return leveltype == DTYPE_TOWN;

Loading…
Cancel
Save