summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/execute.c
diff options
context:
space:
mode:
Diffstat (limited to 'hunt/huntd/execute.c')
-rw-r--r--hunt/huntd/execute.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hunt/huntd/execute.c b/hunt/huntd/execute.c
index a99cccd4..e3e5ba2b 100644
--- a/hunt/huntd/execute.c
+++ b/hunt/huntd/execute.c
@@ -1,4 +1,4 @@
-/* $NetBSD: execute.c,v 1.9 2009/07/04 04:29:54 dholland Exp $ */
+/* $NetBSD: execute.c,v 1.10 2011/08/31 16:24:56 plunky Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: execute.c,v 1.9 2009/07/04 04:29:54 dholland Exp $");
+__RCSID("$NetBSD: execute.c,v 1.10 2011/08/31 16:24:56 plunky Exp $");
#endif /* not lint */
#include <stdlib.h>
@@ -566,8 +566,7 @@ pickup(PLAYER *pp, int y, int x, int prob, int obj)
abort();
}
if (rand_num(100) < prob)
- add_shot(obj, y, x, LEFTS, req, (PLAYER *) NULL,
- TRUE, pp->p_face);
+ add_shot(obj, y, x, LEFTS, req, NULL, TRUE, pp->p_face);
else {
pp->p_ammo += req;
(void) snprintf(Buf, sizeof(Buf), "%3d", pp->p_ammo);