mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
[MIRROR] Fixes a runtime in ssmapping caused by me forgetting what iteration pattern I was using [MDB IGNORE] (#17360)
* Fixes a runtime in ssmapping caused by me forgetting what iteration pattern I was using (#70965) Fixes #70932 * Fixes a runtime in ssmapping caused by me forgetting what iteration pattern I was using Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
@@ -157,7 +157,7 @@ SUBSYSTEM_DEF(mapping)
|
|||||||
var/list/world_contents = GLOB.areas_by_type[world.area].contents
|
var/list/world_contents = GLOB.areas_by_type[world.area].contents
|
||||||
var/list/lists_to_reserve = src.lists_to_reserve
|
var/list/lists_to_reserve = src.lists_to_reserve
|
||||||
var/index = 0
|
var/index = 0
|
||||||
while(length(lists_to_reserve))
|
while(index < length(lists_to_reserve))
|
||||||
var/list/packet = lists_to_reserve[index + 1]
|
var/list/packet = lists_to_reserve[index + 1]
|
||||||
var/packetlen = length(packet)
|
var/packetlen = length(packet)
|
||||||
while(packetlen)
|
while(packetlen)
|
||||||
@@ -174,8 +174,6 @@ SUBSYSTEM_DEF(mapping)
|
|||||||
packetlen = length(packet)
|
packetlen = length(packet)
|
||||||
|
|
||||||
index++
|
index++
|
||||||
// If we're here, we're done with that lad
|
|
||||||
lists_to_reserve.len--
|
|
||||||
lists_to_reserve.Cut(1, index)
|
lists_to_reserve.Cut(1, index)
|
||||||
|
|
||||||
/datum/controller/subsystem/mapping/proc/calculate_default_z_level_gravities()
|
/datum/controller/subsystem/mapping/proc/calculate_default_z_level_gravities()
|
||||||
|
|||||||
Reference in New Issue
Block a user