1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-18 20:08:06 +00:00

polara50 and polarb50 now consistently return bool, not int.

MSVC complains about constructions such as

    bool polara50(int);
    int polara50(cell *c) {
        // ...
        return polara50(someint);
    }
This commit is contained in:
Arthur O'Dwyer
2018-09-05 06:37:07 -07:00
parent 2d5d5a1966
commit f84975d1d1
4 changed files with 14 additions and 13 deletions

View File

@@ -199,7 +199,7 @@ heptagon *createAlternateMap(cell *c, int rad, hstate firststate, int special) {
cell *c = bf.at;
if(cdist50(c) != 0) return NULL;
if(polarb50(c) != 1) return NULL;
if(!polarb50(c)) return NULL;
}
heptagon *alt = tailored_alloc<heptagon> (S7);