Timer component cleanup. Patch by Stan, fixes #4158.
commit5499afa540854f80eaf0d72e0334779c24f3665f
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Tue, 22 Nov 2016 12:28:22 +0000 (22 12:28 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Tue, 22 Nov 2016 12:28:22 +0000 (22 12:28 +0000)
tree4a3a3cc84f749e2277c9d6a50c15bee11236a018
parent25a817755b20539278268d299fc225ebdb917aaa
Timer component cleanup. Patch by Stan, fixes #4158.

Use objects instead of arrays to achieve more readable code.
Use two for-of loops, a continue instead of an if-else pattern and remove an unneeded variable dt.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@18981 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/simulation/components/Timer.js