1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-22 05:03:19 +00:00

fixed some unused/uninitialized variables in rogueviz

This commit is contained in:
Zeno Rogue 2019-07-03 04:57:52 +02:00
parent 1a08948c32
commit 4ae3560dda
2 changed files with 4 additions and 4 deletions

View File

@ -1284,9 +1284,9 @@ bool drawVertex(const transmatrix &V, cell *c, shmup::monster *m) {
int i = m->pid;
vertexdata& vd = vdata[i];
bool ghilite = false;
// bool ghilite = false;
if(vd.special && specialmark) ghilite = true;
// if(vd.special && specialmark) ghilite = true;
if(!gmatrix.count(m->base)) printf("base not in gmatrix\n");
@ -1307,7 +1307,7 @@ bool drawVertex(const transmatrix &V, cell *c, shmup::monster *m) {
if(ei->weight < (hilite ? ei->type->visible_from_hi : ei->type->visible_from)) continue;
if(hilite) ghilite = true;
// if(hilite) ghilite = true;
bool multidraw = quotient || euwrap;

View File

@ -47,7 +47,7 @@ namespace rogueviz {
color_t color1, color2;
char shade;
shared_ptr<rvimage> img;
colorpair(color_t col = 0xC0C0C0FF) { shade = 0; color1 = col; }
colorpair(color_t col = 0xC0C0C0FF) { shade = 0; color1 = color2 = col; }
};
struct vertexdata {