Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

При уходе от двери ее покраска прекращается #13749

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions code/game/machinery/doors/airlock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,9 @@ var/global/list/airlock_overlays = list()
if(!W.can_use(user, 1))
return

if(get_dist(src, user) > 1)
return
Comment on lines +1071 to +1072
Copy link
Member

@KIBORG04 KIBORG04 Jan 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Советую использовать прок Adjacent(). Он более умный. Например, проверяет еще и достижимость по диагонали. Насколько я помню, еще проверит на клик через неполные окна.


var/list/optionlist
if(inner_material == "glass")
optionlist = list("Public", "Public2", "Engineering", "Atmospherics", "Security", "Command", "Medical", "Research", "Mining", "Maintenance")
Expand Down
Loading