Fix crash when spawning traps
This commit is contained in:
parent
6f24883fa3
commit
479d625484
3
room.lua
3
room.lua
|
@ -887,8 +887,9 @@ function tsm_pyramids.make_room(pos, stype, room_id, rotations)
|
|||
else
|
||||
column_style = math.random(0,4)
|
||||
end
|
||||
local layout
|
||||
if room.style == "yrepeat" then
|
||||
local layout = rotate_layout(room.layout, ROOM_WIDTH, rotations)
|
||||
layout = rotate_layout(room.layout, ROOM_WIDTH, rotations)
|
||||
for iy=0,4,1 do
|
||||
for ix=0,8,1 do
|
||||
for iz=0,8,1 do
|
||||
|
|
Loading…
Reference in New Issue
Block a user