diff options
| author | plunky <plunky@NetBSD.org> | 2011-08-31 16:24:54 +0000 |
|---|---|---|
| committer | plunky <plunky@NetBSD.org> | 2011-08-31 16:24:54 +0000 |
| commit | e4a1f12e7e44b2b62ece74c9ea36354fa944acf9 (patch) | |
| tree | 7b2f6b6fab996c47c42c962d0211d2fffdd0ec0d /hunt/huntd/shots.c | |
| parent | 8fdb2354b50bedf84e0744346e974d308ded6a1b (diff) | |
| download | bsdgames-darwin-e4a1f12e7e44b2b62ece74c9ea36354fa944acf9.tar.gz bsdgames-darwin-e4a1f12e7e44b2b62ece74c9ea36354fa944acf9.zip | |
NULL does not need a cast
Diffstat (limited to 'hunt/huntd/shots.c')
| -rw-r--r-- | hunt/huntd/shots.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hunt/huntd/shots.c b/hunt/huntd/shots.c index ad655e2e..7a5192fc 100644 --- a/hunt/huntd/shots.c +++ b/hunt/huntd/shots.c @@ -1,4 +1,4 @@ -/* $NetBSD: shots.c,v 1.11 2009/07/04 06:19:05 dholland Exp $ */ +/* $NetBSD: shots.c,v 1.12 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: shots.c,v 1.11 2009/07/04 06:19:05 dholland Exp $"); +__RCSID("$NetBSD: shots.c,v 1.12 2011/08/31 16:24:56 plunky Exp $"); #endif /* not lint */ #include <err.h> @@ -631,7 +631,7 @@ again: #ifdef BOOTS if (pp->p_face != BOOT && pp->p_face != BOOT_PAIR) { #endif - checkdam(pp, (PLAYER *) NULL, (IDENT *) NULL, + checkdam(pp, NULL, NULL, rand_num(pp->p_damage / 5), FALL); pp->p_face = rand_dir(); showstat(pp); @@ -732,7 +732,7 @@ chkshot(BULLET *bp, BULLET *next) y, x, LEFTS, (Maze[y][x] == GMINE) ? GRENREQ : BULREQ, - (PLAYER *) NULL, TRUE, SPACE); + NULL, TRUE, SPACE); Maze[y][x] = SPACE; break; } |
