mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 22:18:27 +01:00
next set of globals (#19131)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#define TANK_IDEAL_PRESSURE 1015 //Arbitrary.
|
||||
|
||||
var/list/global/tank_gauge_cache = list()
|
||||
GLOBAL_LIST_EMPTY(tank_gauge_cache)
|
||||
|
||||
/obj/item/tank
|
||||
name = "tank"
|
||||
@@ -377,9 +377,9 @@ var/list/global/tank_gauge_cache = list()
|
||||
cut_overlays()
|
||||
add_bomb_overlay()
|
||||
var/indicator = "[gauge_icon][(gauge_pressure == -1) ? "overload" : gauge_pressure]"
|
||||
if(!tank_gauge_cache[indicator])
|
||||
tank_gauge_cache[indicator] = image(icon, indicator)
|
||||
add_overlay(tank_gauge_cache[indicator])
|
||||
if(!GLOB.tank_gauge_cache[indicator])
|
||||
GLOB.tank_gauge_cache[indicator] = image(icon, indicator)
|
||||
add_overlay(GLOB.tank_gauge_cache[indicator])
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user