mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
improve V1 parsing
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user