Fix forced gravity component (#40790)

How many of these i will have to fix
This commit is contained in:
AnturK
2018-10-09 20:36:53 +02:00
committed by Tad Hardesty
parent faaf3b5b0b
commit dd448b00a4
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -463,8 +463,7 @@ GLOBAL_LIST_EMPTY(teleportlocs)
var/max_grav
for(var/i in forced_gravity)
max_grav = max(max_grav, i)
if(max_grav)
return max_grav
return max_grav
if(isspaceturf(T)) // Turf never has gravity
return 0