mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-14 23:22:49 +00:00
refactored grid_prec
This commit is contained in:
parent
e6ff8c041f
commit
f7ba6108b2
@ -814,10 +814,15 @@ void celldrawer::draw_boat() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void celldrawer::draw_grid() {
|
EX int grid_prec() {
|
||||||
|
|
||||||
int prec = sphere ? 3 : 1;
|
int prec = sphere ? 3 : 1;
|
||||||
prec += vid.linequality;
|
prec += vid.linequality;
|
||||||
|
return prec;
|
||||||
|
}
|
||||||
|
|
||||||
|
void celldrawer::draw_grid() {
|
||||||
|
|
||||||
|
int prec = grid_prec();
|
||||||
|
|
||||||
if(vid.grid && c->bardir != NODIR && c->bardir != NOBARRIERS && c->land != laHauntedWall &&
|
if(vid.grid && c->bardir != NODIR && c->bardir != NOBARRIERS && c->land != laHauntedWall &&
|
||||||
c->barleft != NOWALLSEP_USED && GDIM == 2) {
|
c->barleft != NOWALLSEP_USED && GDIM == 2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user