]> granicus.if.org Git - nethack/commitdiff
more multishot
authorPatR <rankin@nethack.org>
Tue, 7 Jun 2016 01:13:04 +0000 (18:13 -0700)
committerPatR <rankin@nethack.org>
Tue, 7 Jun 2016 01:13:04 +0000 (18:13 -0700)
An attempt to simplify handling of missiles which stop at hero's
location (either hit or reached end of range) would have resulted
in missiles that hit the hero not being put on the map.  I had
realized this earlier but for some reason didn't get around to
dealing with it before the previous commit.

src/mthrowu.c

index 7c5f297d7893d43343cbdcb0601d6ad1ed212b10..e0961a1cecf2808063ea2017a969ec457f2bec73 100644 (file)
@@ -606,7 +606,7 @@ struct obj *obj;         /* missile (or stack providing it) */
             }
             stop_occupation();
             if (hitu) {
-                range = 0;
+                (void) drop_throw(singleobj, hitu, u.ux, u.uy);
                 break;
             }
         }