1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 09:57:41 +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

@@ -857,7 +857,7 @@ void celldrawer::draw_grid() {
if(0);
#if MAXMDIM == 4
else if(WDIM == 3) {
int ofs = wall_offset(c);
int ofs = currentmap->wall_offset(c);
for(int t=0; t<c->type; t++) {
if(!c->move(t)) continue;
if(bt::in() && !sn::in() && !among(t, 5, 6, 8)) continue;
@@ -1666,7 +1666,7 @@ void celldrawer::draw_features() {
void celldrawer::draw_features_and_walls_3d() {
#if MAXMDIM >= 4
color_t dummy;
int ofs = wall_offset(c);
int ofs = currentmap->wall_offset(c);
if(isWall3(c, wcol)) {
if(!no_wall_rendering) {
color_t wcol2 = wcol;