diff options
| author | dholland <dholland@NetBSD.org> | 2008-01-28 03:23:29 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2008-01-28 03:23:29 +0000 |
| commit | 4c39d3d5d3a9a029eecd375d4c55d91ed234cc9c (patch) | |
| tree | 18650ae36850c1da11197138ae67b983fdac2708 /hunt/huntd/execute.c | |
| parent | 1855dcd4d2560ee6a85ee271e81ba19d567dd596 (diff) | |
| download | bsdgames-darwin-4c39d3d5d3a9a029eecd375d4c55d91ed234cc9c.tar.gz bsdgames-darwin-4c39d3d5d3a9a029eecd375d4c55d91ed234cc9c.zip | |
clean for WARNS=4
Diffstat (limited to 'hunt/huntd/execute.c')
| -rw-r--r-- | hunt/huntd/execute.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/hunt/huntd/execute.c b/hunt/huntd/execute.c index 36ee8b4f..5c59b32e 100644 --- a/hunt/huntd/execute.c +++ b/hunt/huntd/execute.c @@ -1,4 +1,4 @@ -/* $NetBSD: execute.c,v 1.4 2004/01/27 20:30:29 jsm Exp $ */ +/* $NetBSD: execute.c,v 1.5 2008/01/28 03:23:29 dholland Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,14 +32,14 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: execute.c,v 1.4 2004/01/27 20:30:29 jsm Exp $"); +__RCSID("$NetBSD: execute.c,v 1.5 2008/01/28 03:23:29 dholland Exp $"); #endif /* not lint */ # include <stdlib.h> # include "hunt.h" static void cloak(PLAYER *); -static void face(PLAYER *, int); +static void turn_player(PLAYER *, int); static void fire(PLAYER *, int); static void fire_slime(PLAYER *, int); static void move_player(PLAYER *, int); @@ -104,25 +104,25 @@ execute(pp) move_player(pp, LEFTS); break; case 'H': - face(pp, LEFTS); + turn_player(pp, LEFTS); break; case 'j': move_player(pp, BELOW); break; case 'J': - face(pp, BELOW); + turn_player(pp, BELOW); break; case 'k': move_player(pp, ABOVE); break; case 'K': - face(pp, ABOVE); + turn_player(pp, ABOVE); break; case 'l': move_player(pp, RIGHT); break; case 'L': - face(pp, RIGHT); + turn_player(pp, RIGHT); break; case 'f': case '1': @@ -324,11 +324,11 @@ move_player(pp, dir) } /* - * face: + * turn_player: * Change the direction the player is facing */ static void -face(pp, dir) +turn_player(pp, dir) PLAYER *pp; int dir; { |
