Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
fira committed Jun 27, 2023
1 parent 70229c2 commit dd91f0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/game/objects/structures/tables_racks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -334,16 +334,16 @@
return FALSE

table = src
var/max_tables = 8 // Lazy extra safety against infinite loops. If table big, can't flip, i guess.
while(table && max_tables--)
var/tables_count = 8 // Lazy extra safety against infinite loops. If table big, can't flip, i guess.
while(table && tables_count--)
table = locate() in get_step(table, direction)
if(!table || table.flipped)
return TRUE
if(istype(table, /obj/structure/surface/table/reinforced))
var/obj/structure/surface/table/reinforced/reinforced_table = table
if(reinforced_table.status == RTABLE_NORMAL)
return FALSE
if(!max_tables)
if(!tables_count)
return FALSE
return TRUE

Expand Down

0 comments on commit dd91f0a

Please sign in to comment.