Skip to content

Conversation

Erza
Copy link
Contributor

@Erza Erza commented Sep 17, 2021

Pull Request Prelude

Changes Proposed

Containers can never be opened if a player is more than 1 SQM away from it, hence we are doing unnecessary work here by sending updates to clients that are too far away from the container

Issues addressed:

@DSpeichert DSpeichert merged commit d156f95 into otland:master Sep 17, 2021
@nekiro
Copy link
Member

nekiro commented Sep 18, 2021

why are we looping twice though in these methods? Instead of once and execute both methods (sendUpdate, onUpdate)

@Erza
Copy link
Contributor Author

Erza commented Sep 18, 2021

why are we looping twice though in these methods? Instead of once and execute both methods (sendUpdate, onUpdate)

I don't know either, but it is like that all over the codebase. Once I read a comment somewhere on this repo about there being a possible race condition if it's not done this way? Might be wrong tho

@Erza Erza deleted the container-range branch September 18, 2021 21:28
@Znote Znote mentioned this pull request Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants