openbsd-ports/games/angband/patches/patch-src_spells1_c
2011-09-15 12:30:30 +00:00

17 lines
510 B
Plaintext

$OpenBSD: patch-src_spells1_c,v 1.2 2011/09/15 12:30:30 edd Exp $
Fixes the scroll of light bug #1533. Applied upstream.
--- src/spells1.c.orig Mon Sep 12 20:47:46 2011
+++ src/spells1.c Mon Sep 12 20:56:10 2011
@@ -2818,6 +2818,9 @@ static bool project_m(int who, int r, int y, int x, in
*/
static bool project_p(int who, int r, int y, int x, int dam, int typ, bool obvious)
{
+ if (who == -1)
+ return(obvious);
+
/* Get the damage type details */
const struct gf_type *gf_ptr = &gf_table[typ];