1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 18:37:39 +00:00

magic adjustment of textures

This commit is contained in:
Zeno Rogue
2017-12-16 09:03:50 +01:00
parent e2080cd91e
commit bf24550e82
6 changed files with 164 additions and 27 deletions

View File

@@ -145,6 +145,10 @@ int hrand(int i) {
return r() % i;
}
ld hrandf() {
return (r() & HRANDMAX) / (HRANDMAX + 1.0);
}
void initcell(cell *c) {
c->mpdist = INFD; // minimum distance from the player, ever
c->cpdist = INFD; // current distance from the player