EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.82k stars 419 forks source link

Typo in lag listener? #10

Closed ghost closed 10 years ago

ghost commented 10 years ago

From ole.tet...@gmail.com on June 04, 2011 19:35:51

Was just browsing Listener.java and found

int lag = lagMillisMax + (int)(Math.random() * (lagMillisMax - lagMillisMin));

I would assume this was supposed to be

int lag = lagMillisMin + (int)(Math.random() * (lagMillisMax - lagMillisMin));

Not awfully significant of course, and I might very well be wrong, just seems more logical. :)

Original issue: http://code.google.com/p/kryonet/issues/detail?id=9

ghost commented 10 years ago

From nathan.s...@gmail.com on June 06, 2011 22:25:56

Oops, thanks! Fixed in svn 78.

Status: Fixed