mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 15:39:54 +00:00
protected against negative ticks
This commit is contained in:
parent
7859455bfb
commit
daf022b7e0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user