Skip to content

Commit

Permalink
portal to maxfloor-1
Browse files Browse the repository at this point in the history
  • Loading branch information
malytomas committed Oct 12, 2023
1 parent 938f4f9 commit 9239d81
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sources/generateFloor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,11 +630,10 @@ namespace

f.tile(4, h / 2) = TileEnum::Spawn;
f.tile(6, h / 2) = TileEnum::Stairs;
if (isLevelBoss(maxLevel))
if (maxLevel > 1)
{
const sint32 x = 5 + levelToBossIndex(maxLevel) * 2;
f.tile(x, 3) = TileEnum::Waypoint;
f.extra(x, 3).push_back(Waypoint{ maxLevel - 1 });
f.tile(3, 3) = TileEnum::Waypoint;
f.extra(3, 3).push_back(Waypoint{ maxLevel - 1 });
}
for (uint32 i = 1; i < portals + 1; i++)
{
Expand Down

0 comments on commit 9239d81

Please sign in to comment.