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

airlock/update_other_id is stupid #22

Open
Mothblocks opened this issue Dec 5, 2022 · 0 comments
Open

airlock/update_other_id is stupid #22

Mothblocks opened this issue Dec 5, 2022 · 0 comments

Comments

@Mothblocks
Copy link
Member

This is called nearly 200 times unconfig'd and is 83ms.

/obj/machinery/door/airlock/proc/update_other_id()
    for(var/obj/machinery/door/airlock/Airlock in GLOB.airlocks)
        if(Airlock.closeOtherId == closeOtherId && Airlock != src)
            if(!(Airlock in close_others))
                close_others += Airlock
            if(!(src in Airlock.close_others))
                Airlock.close_others += src
@Mothblocks Mothblocks converted this from a draft issue Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant