improve V1 parsing

This commit is contained in:
bancika
2016-11-08 11:33:19 +01:00
parent 606d6a50be
commit f63b6e5c0d
8 changed files with 25 additions and 12 deletions
@@ -731,7 +731,7 @@ public class V1FileParser implements IOldFileParser {
private int randInt(int range) {
long newSeed = randSeed * 0x08088405 + 1;
randSeed = newSeed;
return (int) (newSeed * range >> 32);
return (int) ((long)newSeed * range >> 32);
}
}