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

refactored shvid_full and wall_offset as virtual functions

This commit is contained in:
Zeno Rogue
2021-07-09 10:09:31 +02:00
parent 09850d2f76
commit 9a319e2d2a
12 changed files with 98 additions and 109 deletions

View File

@@ -338,6 +338,13 @@ struct hrmap_kite : hrmap {
}
return gm * where;
}
virtual int wall_offset(cell *c) {
if(WDIM == 3)
return kite::getshape(c->master) == kite::pKite ? 10 : 0;
else
return hrmap::wall_offset(c);
}
hrmap_kite() {
make_graphrules();