mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Prevent solid objects from turret deployment. (#17662)
* Prevent solid objects from turret deployment. * Styling Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> * dm idioms Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
co-authored by
Sirryan2002
AffectedArc07
parent
35fe448b38
commit
81d671b464
@@ -621,6 +621,14 @@ GLOBAL_LIST_EMPTY(turret_icons)
|
||||
return
|
||||
if(stat & BROKEN)
|
||||
return
|
||||
// check if anything's preventing us from raising
|
||||
var/turf/T = get_turf(src)
|
||||
for(var/atom/A in T)
|
||||
if(A == src)
|
||||
continue
|
||||
if(A.density)
|
||||
return
|
||||
|
||||
set_raised_raising(raised, TRUE)
|
||||
playsound(get_turf(src), 'sound/effects/turret/open.wav', 60, 1)
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user