From dca95aa2aac4adf54b849c187904115f4782c849 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 23 Sep 2019 01:05:59 +0200 Subject: [PATCH] RogueViz stuff --- rogueviz/rogueviz.cpp | 1 + shmup.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rogueviz/rogueviz.cpp b/rogueviz/rogueviz.cpp index d1b2107f..77fdd918 100644 --- a/rogueviz/rogueviz.cpp +++ b/rogueviz/rogueviz.cpp @@ -1275,6 +1275,7 @@ void queue_prec(const transmatrix& V, edgeinfo*& ei, color_t col) { bool drawVertex(const transmatrix &V, cell *c, shmup::monster *m) { if(m->dead) return true; + if(m->type != moRogueviz) return false; int i = m->pid; vertexdata& vd = vdata[i]; diff --git a/shmup.cpp b/shmup.cpp index 38d3a1da..eebc4d62 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -1798,7 +1798,7 @@ EX bool dragonbreath(cell *dragon) { void moveMonster(monster *m, int delta) { - bool inertia_based = m->type == moAsteroid; + bool inertia_based = m->type == moAsteroid || m->type == moRogueviz; bool stunned = m->stunoff > curtime || m->blowoff > curtime;