-
Notifications
You must be signed in to change notification settings - Fork 446
refactor: AutoObserve #6787
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
base: master220
Are you sure you want to change the base?
refactor: AutoObserve #6787
Conversation
This reverts commit ab7b1d7.
SIGNAL_HANDLER // COMSIG_MOB_UPDATE_SIGHT | ||
SIGNAL_HANDLER | ||
|
||
if(orbiting && client) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут ранний ретурн
continue | ||
observe.client.screen += worn_item | ||
else | ||
LAZYREMOVE(inventory_observers, observe) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут сделай отрицание условия в if, затем LAZYREMOVE(inventory_observers, observe) и continue, а затем уже все остальное. if(observe.hud_used) тоже проотрицать и сделать continue.
Не проверял на локалке изменения, но по идеи ломаться нечему. @dageavtobusnick |
Описание
Переписал с использованием не единого списка орбитеров а с отдельным, в который заносятся мобы что смотрят инвентарь.
Переписал так, что теперь кнопки не прожимаются только когда на госте висит трейт.
Переписал случаи отписки от сигналов на обновление поле зрения.
Поправил замыление экрана.
Поправил удаление хайвмайнд языков у рас, когда те заражаются вавилонской лихорадкой.
Тесты
Потестили с типом на локалке, (почти) всё работает теперь идеально.