mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
that's not how #ifndef works
This commit is contained in:
@@ -40,7 +40,7 @@ SUBSYSTEM_DEF(planets)
|
|||||||
var/datum/planet/P = z_to_planet[T.z]
|
var/datum/planet/P = z_to_planet[T.z]
|
||||||
if(!istype(P))
|
if(!istype(P))
|
||||||
return
|
return
|
||||||
if(istype(T, /turf/unsimulated/wall/planetary))
|
if(istype(T, /turf/unsimulated/wall/planetary))
|
||||||
P.planet_walls += T
|
P.planet_walls += T
|
||||||
else if(istype(T, /turf/simulated) && T.is_outdoors())
|
else if(istype(T, /turf/simulated) && T.is_outdoors())
|
||||||
P.planet_floors += T
|
P.planet_floors += T
|
||||||
@@ -71,8 +71,8 @@ SUBSYSTEM_DEF(planets)
|
|||||||
updateSunlight(P)
|
updateSunlight(P)
|
||||||
if(MC_TICK_CHECK)
|
if(MC_TICK_CHECK)
|
||||||
return
|
return
|
||||||
|
|
||||||
#ifndef UNIT_TEST // Don't be updating temperatures and such during unit tests
|
#if !(UNIT_TEST) // Don't be updating temperatures and such during unit tests // CHOMPedit: That's not how ifndef works!
|
||||||
var/list/needs_temp_update = src.needs_temp_update
|
var/list/needs_temp_update = src.needs_temp_update
|
||||||
while(needs_temp_update.len)
|
while(needs_temp_update.len)
|
||||||
var/datum/planet/P = needs_temp_update[needs_temp_update.len]
|
var/datum/planet/P = needs_temp_update[needs_temp_update.len]
|
||||||
@@ -105,7 +105,7 @@ SUBSYSTEM_DEF(planets)
|
|||||||
/datum/controller/subsystem/planets/proc/updateSunlight(var/datum/planet/P)
|
/datum/controller/subsystem/planets/proc/updateSunlight(var/datum/planet/P)
|
||||||
var/new_brightness = P.sun["brightness"]
|
var/new_brightness = P.sun["brightness"]
|
||||||
P.sun_holder.update_brightness(new_brightness, P.planet_floors)
|
P.sun_holder.update_brightness(new_brightness, P.planet_floors)
|
||||||
|
|
||||||
var/new_color = P.sun["color"]
|
var/new_color = P.sun["color"]
|
||||||
P.sun_holder.update_color(new_color)
|
P.sun_holder.update_color(new_color)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user