Migo portal can freeze the game #45807
Labels
<Bug>
This needs to be fixed
<Crash / Freeze>
Fatal bug that results in hangs or crashes.
Map / Mapgen
Overmap, Mapgen, Map extras, Map display
(S2 - Confirmed)
Bug that's been confirmed to exist
Describe the bug
The game freezes when near Migo portals.
Steps To Reproduce
Expected behavior
The game does not freeze.
Additional context
Here is a gdb backtrace from a frozen case:
Basically what happens is that in case of a Migo portal the logic that tries to construct resin walls will run into an endless loop in line 1800:
p can roll between 5-18 (see map_extras.cpp line 1694). so basically if it is 7-17 for both x and y it will run into an endless loop.
The text was updated successfully, but these errors were encountered: