Feedback when boomerang hits sink

This commit is contained in:
Pasi Kallinen
2015-03-28 19:38:15 +02:00
parent cbb155b0e6
commit cf7143094f
2 changed files with 4 additions and 1 deletions

View File

@@ -3283,8 +3283,10 @@ int dx, dy;
}
tmp_at(bhitpos.x, bhitpos.y);
delay_output();
if(IS_SINK(levl[bhitpos.x][bhitpos.y].typ))
if(IS_SINK(levl[bhitpos.x][bhitpos.y].typ)) {
if (!Deaf) pline("Klonk!");
break; /* boomerang falls on sink */
}
/* ct==0, initial position, we want next delta to be same;
ct==5, opposite position, repeat delta undoes first one */
if (ct % 5 != 0) i += (counterclockwise ? -1 : 1);