From daf022b7e0cd219e7688af8a36fe4c58def86e9f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 20 Jan 2018 17:49:56 +0100 Subject: [PATCH] protected against negative ticks --- blizzard.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/blizzard.cpp b/blizzard.cpp index a0c5c614..a900e1f5 100644 --- a/blizzard.cpp +++ b/blizzard.cpp @@ -215,6 +215,7 @@ void drawArrowTraps() { if((c->wparam & 7) == 3 && !shmup::on) { // queueline(t0 * randomPointIn(r[0]->type), t1 * randomPointIn(r[1]->type), 0xFFFFFFFF, 4, PPR_ITEM); int tt = ticks % 401; + if(tt < 0) tt += 401; for(int u=0; u<2; u++) { transmatrix& tu = u ? t0 : t1;