1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

protected against negative ticks

This commit is contained in:
Zeno Rogue 2018-01-20 17:49:56 +01:00
parent 7859455bfb
commit daf022b7e0

View File

@ -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;