mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
fixed a bug in randd() which made Blizzard look not as it should on Windows
This commit is contained in:
parent
c93d7360f9
commit
afdca24041
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user