mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +01:00
[MIRROR] More globals (#12530)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
de8fed65df
commit
4f5dce5ebe
@@ -46,11 +46,12 @@
|
||||
|
||||
// All accessed vars need to be cached during read.
|
||||
// Get data from species, if this fails use cached data
|
||||
#define SETUP_SPECIES_CHECK(p,x)\
|
||||
var/datum/species/SP = species?.resolve();\
|
||||
if(SP)\
|
||||
cached_species_vars[p] = x;\
|
||||
return cached_species_vars[p];
|
||||
#define SETUP_SPECIES_CHECK(p, x) \
|
||||
var/datum/species/SP = species?.resolve(); \
|
||||
if (SP) { \
|
||||
cached_species_vars[p] = x; \
|
||||
} \
|
||||
return cached_species_vars[p];
|
||||
|
||||
|
||||
/datum/organ_data/proc/get_species_name()
|
||||
|
||||
Reference in New Issue
Block a user