[category]:
"
- for(var/i in 1 to disposal_pipe_recipes[category].len)
- var/datum/pipe_recipe/PI = disposal_pipe_recipes[category][i]
+ var/list/L = disposal_pipe_recipes[category]
+ for(var/i in 1 to L.len)
+ var/datum/pipe_recipe/PI = L[i]
lines += "
"
@@ -340,4 +342,4 @@
#undef PAINT_MODE
#undef EATING_MODE
#undef ATMOS_MODE
-#undef DISPOSALS_MODE
\ No newline at end of file
+#undef DISPOSALS_MODE
diff --git a/code/modules/maps/tg/reader.dm b/code/modules/maps/tg/reader.dm
index 6ae2d6ff30c..26e03719665 100644
--- a/code/modules/maps/tg/reader.dm
+++ b/code/modules/maps/tg/reader.dm
@@ -159,33 +159,37 @@
// Rotate the list according to orientation
if(orientation != SOUTH)
- var/num_cols = key_list[1].len
+ var/list/firstlist = key_list[1]
+ var/num_cols = firstlist.len
var/num_rows = key_list.len
var/list/new_key_list = list()
// If it's rotated 180 degrees, the dimensions are the same
if(orientation == NORTH)
new_key_list.len = num_rows
for(var/i = 1 to new_key_list.len)
- new_key_list[i] = list()
- new_key_list[i].len = num_cols
+ var/list/L = list()
+ L.len = num_cols
+ new_key_list[i] = L
// Else, the dimensions are swapped
else
new_key_list.len = num_cols
for(var/i = 1 to new_key_list.len)
- new_key_list[i] = list()
- new_key_list[i].len = num_rows
+ var/list/L = list()
+ L.len = num_rows
+ new_key_list[i] = L
num_rows++ // Buffering against the base index of 1
num_cols++
// Populate the new list
for(var/i = 1 to new_key_list.len)
- for(var/j = 1 to new_key_list[i].len)
+ var/list/L = new_key_list[i]
+ for(var/j = 1 to L.len)
switch(orientation)
if(NORTH)
- new_key_list[i][j] = key_list[num_rows - i][num_cols - j]
+ L[j] = key_list[num_rows - i][num_cols - j]
if(EAST)
- new_key_list[i][j] = key_list[num_rows - j][i]
+ L[j] = key_list[num_rows - j][i]
if(WEST)
- new_key_list[i][j] = key_list[j][num_cols - i]
+ L[j] = key_list[j][num_cols - i]
key_list = new_key_list
@@ -196,7 +200,8 @@
for(var/i = 1 to key_list.len)
if(ycrd <= world.maxy && ycrd >= 1)
xcrd = xcrdStart
- for(var/j = 1 to key_list[1].len)
+ var/list/firstcolumn = key_list[1]
+ for(var/j = 1 to firstcolumn.len)
if(xcrd > world.maxx)
if(cropMap)
break
diff --git a/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm b/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm
index 42faeecf78d..1d091d23db0 100644
--- a/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm
+++ b/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm
@@ -41,8 +41,8 @@
data["crewmembers"] = list()
for(var/z in data["map_levels"]) // VOREStation Edit
data["crewmembers"] += crew_repository.health_data(z)
-
- if(!data["map_levels"].len)
+ var/list/map_levels = data["map_levels"]
+ if(!map_levels.len)
to_chat(user, "
The crew monitor doesn't seem like it'll work here.")
if(ui) // VOREStation Addition
ui.close() // VOREStation Addition