-Fix for multiple reflection probes causing issues.

-Fix for positional sound corruption to avoid making people deaf.
This commit is contained in:
Juan Linietsky 2017-07-15 18:40:47 -03:00
parent 6422b9d150
commit 741145febd
8 changed files with 74 additions and 32 deletions

View file

@ -51,6 +51,25 @@ public:
_first->_prev = p_elem;
_first = p_elem;
}
void add_last(SelfList<T> *p_elem) {
ERR_FAIL_COND(p_elem->_root);
if (!_first) {
add(p_elem);
return;
}
SelfList<T> *e = _first;
while (e->next()) {
e = e->next();
}
e->_next = p_elem;
p_elem->_prev = e->_next;
p_elem->_root = this;
}
void remove(SelfList<T> *p_elem) {