Fix entering pods and stuff while buckled

You already can't drag and drop buckled people
onto pods and stuff but they can still enter them
by themselves. This commit fixes that
This commit is contained in:
mochi
2020-06-09 14:29:03 +02:00
parent d39d990936
commit a67d684b01
5 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -526,7 +526,7 @@
if(panel_open)
to_chat(usr, "<span class='boldnotice'>Close the maintenance panel first.</span>")
return
if(usr.incapacitated()) //are you cuffed, dying, lying, stunned or other
if(usr.incapacitated() || usr.buckled) //are you cuffed, dying, lying, stunned or other
return
if(usr.has_buckled_mobs()) //mob attached to us
to_chat(usr, "<span class='warning'>[usr] will not fit into [src] because [usr.p_they()] [usr.p_have()] a slime latched onto [usr.p_their()] head.</span>")