makes what i'm doing with model_temp more explicit
This commit is contained in:
@@ -240,3 +240,5 @@ GLOBAL_LIST_INIT(glass_sheet_types, typecacheof(list(
|
||||
#define isshuttleturf(T) (length(T.baseturfs) && (/turf/baseturf_skipover/shuttle in T.baseturfs))
|
||||
|
||||
#define isProbablyWallMounted(O) (O.pixel_x > 20 || O.pixel_x < -20 || O.pixel_y > 20 || O.pixel_y < -20)
|
||||
|
||||
#define isfinite(n) (isnum(n) && n == n)
|
||||
|
||||
@@ -256,7 +256,7 @@ GLOBAL_LIST_INIT(auxtools_atmos_initialized,FALSE)
|
||||
//acounts for changes in temperature
|
||||
var/turf/model_parent = model.parent_type
|
||||
var/model_temp = model.return_temperature()
|
||||
if(isnum(model_temp) && model_temp == model_temp && (model_temp != initial(model.initial_temperature) || model_temp != initial(model_parent.initial_temperature)))
|
||||
if(isfinite(model_temp) && (model_temp != initial(model.initial_temperature) || model_temp != initial(model_parent.initial_temperature)))
|
||||
set_temperature(model_temp)
|
||||
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user