We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5114ee commit 97f8fa2Copy full SHA for 97f8fa2
doc/evilhack-changelog.md
@@ -4362,4 +4362,5 @@ The following changes to date are:
4362
- Fix: grammar feedback when spells like barkskin or stoneskin wear off
4363
- Fix: portal to quest would sometimes not spawn if entry portal spawned
4364
on Aphrodite's Garden or the Desolate Forest levels
4365
+- Fix: prevent boomerang going out of map
4366
src/zap.c
@@ -4536,6 +4536,11 @@ int dx, dy;
4536
dy = ydir[i];
4537
bhitpos.x += dx;
4538
bhitpos.y += dy;
4539
+ if (!isok(bhitpos.x, bhitpos.y)) {
4540
+ bhitpos.x -= dx;
4541
+ bhitpos.y -= dy;
4542
+ break;
4543
+ }
4544
if ((mtmp = m_at(bhitpos.x, bhitpos.y)) != 0) {
4545
m_respond(mtmp);
4546
tmp_at(DISP_END, 0);
0 commit comments