Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit d5a87e1

Browse files
committed
- Attempted to fix porch floor material issues (again)
1 parent 11fa8b6 commit d5a87e1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/scripts/room.lua

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2624,7 +2624,7 @@ function Room_floor_ceil_heights()
26242624

26252625
if R.is_outdoor then
26262626
if R.theme.porch_floors then
2627-
R.porch_floor_mat = rand.key_by_probs(R.theme.porch_floors)
2627+
A.porch_floor_mat = rand.key_by_probs(R.theme.porch_floors)
26282628
else
26292629
gui.printf(LEVEL.theme_name .. " NEEDS A PORCH_FLOORS table BADLY!!!111\n")
26302630
end
@@ -3668,7 +3668,6 @@ function Room_cleanup_stairs_to_nowhere(R)
36683668
each N in A.neighbors do
36693669
if N.room then
36703670
if A.room == N.room
3671-
and not N.is_porch
36723671
and N.mode == "floor"
36733672
and A.floor_h == N.floor_h then
36743673
return true
@@ -3683,10 +3682,9 @@ function Room_cleanup_stairs_to_nowhere(R)
36833682

36843683
each A in R.areas do
36853684
if A.is_porch then
3686-
if not same_level_to_outdoor_area(A)
3687-
and not A.dead_end then
3685+
if not same_level_to_outdoor_area(A) then
36883686
A.uses_porch_floor = true
3689-
A.floor_mat = A.room.porch_floor_mat
3687+
A.floor_mat = A.porch_floor_mat
36903688
end
36913689
end
36923690
end
@@ -3696,7 +3694,7 @@ function Room_cleanup_stairs_to_nowhere(R)
36963694
if A1.uses_porch_floor and not A1.porch_floor_infected then
36973695
each A2 in R.areas do
36983696
if A1.floor_h == A2.floor_h
3699-
and not A2.is_porch then
3697+
and A2.is_porch then
37003698
A1.porch_floor_infected = true
37013699
A2.floor_mat = A1.floor_mat
37023700
end

0 commit comments

Comments
 (0)