1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-04 11:37:55 +00:00

fixed a bug in randd() which made Blizzard look not as it should on Windows

This commit is contained in:
Zeno Rogue
2018-01-31 00:10:15 +01:00
parent c93d7360f9
commit afdca24041

View File

@@ -1,4 +1,4 @@
double randd() { return (rand() % 1000000) / 1000000. + .0000005; }
double randd() { return (rand() + .5) / (RAND_MAX + 1.); }
double cellgfxdist(cell *c, int i) {
return nonbitrunc ? tessf : (c->type == 6 && (i&1)) ? hexhexdist : crossf;