Barbosik / MultiOgar

An open source Ogar server implementation, written with Node.js.
Other
61 stars 44 forks source link

Wrong seconds under mainloop #409

Open makandz opened 8 years ago

makandz commented 8 years ago

https://github.com/Barbosik/MultiOgar/blob/master/src/GameServer.js#L687

It states the loop is to run per 30 seconds in the comment under it, but based on my math 250 ticks is actually 10 seconds. I ran it and tested my theory and I was write, the script runs every 10 seconds. Either the comment is wrong or the formula is wrong. 👍

Also one more thing, why did you guys do 10000 / 40? Why didn't you just put it as 250. It didn't affect anything when I tested it out. You're pretty much just adding an extra equation that doesn't matter much in that anyways :)

makandz commented 8 years ago

rip this issue lol

BaumanDev commented 8 years ago

It's okay, bud.