Remove unnecessary code

removed PortalTile:: from PortalTile::validPortalFrame
This commit is contained in:
Us3ful-dev 2026-03-20 13:33:16 +01:00
parent 448c918687
commit d3c3770c7e

View file

@ -130,17 +130,17 @@ bool PortalTile::trySpawnPortal(Level *level, int x, int y, int z, bool actually
if (!twoPosible)
{
if (!PortalTile::validPortalFrame(level, x, y, z, xd, zd, actuallySpawn)) return false;
if (!validPortalFrame(level, x, y, z, xd, zd, actuallySpawn)) return false;
}
else
{
if (!PortalTile::validPortalFrame(level, x, y, z, xd, 0, actuallySpawn))
if (!validPortalFrame(level, x, y, z, xd, 0, actuallySpawn))
{
if (changedx) x++; // revert x (this check wants to check z not x and z)
if (level->getTile(x, y, z - zd) == 0) z--;
if (!PortalTile::validPortalFrame(level, x, y, z, 0, zd, actuallySpawn))
if (!validPortalFrame(level, x, y, z, 0, zd, actuallySpawn))
return false;
}
}