use static for shared member vars

This commit is contained in:
spookerton
2022-04-13 19:41:38 +01:00
parent 757fecf223
commit ee67e174fb
24 changed files with 47 additions and 48 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
active_power_usage = 5
var/interference = FALSE
var/icon/plant = null
var/global/list/possible_plants = list(
var/static/list/possible_plants = list(
"plant-1",
"plant-10",
"plant-09",
@@ -17,7 +17,7 @@
// the specific order matters to get a usable icon_state, it is
// copied here so that, in the unlikely case that alldirs is changed,
// this continues to work.
var/global/list/tube_dir_list = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
var/static/list/tube_dir_list = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
// A place where tube pods stop, and people can get in or out.
@@ -520,7 +520,7 @@
// but it is probably safer to assume the existence of, and
// rely on, a sufficiently smart compiler/optimizer.
/obj/structure/transit_tube/proc/parse_dirs(text)
var/global/list/direction_table = list()
var/static/list/direction_table = list()
if(text in direction_table)
return direction_table[text]