This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
gitlord
/
isleward
mirror of
https://gitlab.com/Isleward/isleward.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
203
Wiki
Activity
Browse Source
bug: Fixed an issue that caused effect sprites never to be removed if their ttl gets set to 0 externally
tags/v0.10.6^2
Shaun
2 years ago
parent
6fff5a03a5
commit
d2a653f1b4
1 changed files
with
3 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-4
src/server/components/effects.js
+ 3
- 4
src/server/components/effects.js
View File
@@ -290,11 +290,10 @@ module.exports = {
for (let i = 0; i < eLen; i++) {
let e = effects[i];
if (e.ttl > 0)
{
if (e.ttl > 0)
e.ttl--;
if (e.ttl === 0)
e.destroyed = true;
}
else if (e.ttl === 0)
e.destroyed = true;
if (e.update)
e.update();
Write
Preview
Loading…
Cancel
Save