mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-04 10:42:51 +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) {
|
if((c->wparam & 7) == 3 && !shmup::on) {
|
||||||
// queueline(t0 * randomPointIn(r[0]->type), t1 * randomPointIn(r[1]->type), 0xFFFFFFFF, 4, PPR_ITEM);
|
// queueline(t0 * randomPointIn(r[0]->type), t1 * randomPointIn(r[1]->type), 0xFFFFFFFF, 4, PPR_ITEM);
|
||||||
int tt = ticks % 401;
|
int tt = ticks % 401;
|
||||||
|
if(tt < 0) tt += 401;
|
||||||
|
|
||||||
for(int u=0; u<2; u++) {
|
for(int u=0; u<2; u++) {
|
||||||
transmatrix& tu = u ? t0 : t1;
|
transmatrix& tu = u ? t0 : t1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user