Skip to content

Commit

Permalink
Space turfs always have no gravity (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit authored Jan 22, 2024
1 parent db0ab1f commit d28ac21
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions code/game/area/areas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -305,26 +305,22 @@ var/list/mob/living/forced_ambiance_list = new
return has_gravity

/area/space/has_gravity()
return 0
return FALSE

/atom/proc/has_gravity()
var/area/A = get_area(src)
if(A && A.has_gravity())
return 1
return 0

/mob/has_gravity()
if(!lastarea)
lastarea = get_area(src)
if(!lastarea || !lastarea.has_gravity())
return 0
return 1
var/turf/T = get_turf(src)
if(T)
return(T.has_gravity())
return FALSE

/turf/has_gravity()
var/area/A = loc
if(A && A.has_gravity())
return 1
return 0
return TRUE
return FALSE

/turf/space/has_gravity()
return FALSE

/area/proc/get_dimensions()
var/list/res = list("x"=1,"y"=1)
Expand Down

0 comments on commit d28ac21

Please sign in to comment.