comparison xrogue/effects.c @ 220:f54901b9c39b

XRogue: convert to ANSI-style function declarations.
author John "Elwin" Edwards
date Wed, 02 Mar 2016 21:13:26 -0500
parents ce0cf824c192
children 7c1cb43f346e
comparison
equal deleted inserted replaced
219:f9ef86cf22b2 220:f54901b9c39b
24 * effect: 24 * effect:
25 * Check for effects of one thing hitting another thing. Return 25 * Check for effects of one thing hitting another thing. Return
26 * the reason code if the defender is killed. Otherwise return 0. 26 * the reason code if the defender is killed. Otherwise return 0.
27 */ 27 */
28 28
29 effect(att, def, weap, thrown, see_att, see_def) 29 int
30 register struct thing *att, *def; 30 effect(struct thing *att, struct thing *def, struct object *weap, bool thrown,
31 struct object *weap; 31 bool see_att, bool see_def)
32 bool thrown;
33 register bool see_att, see_def;
34 { 32 {
35 register bool att_player, def_player; 33 register bool att_player, def_player;
36 char attname[LINELEN+1], defname[LINELEN+1]; 34 char attname[LINELEN+1], defname[LINELEN+1];
37 35
38 /* See if the attacker or defender is the player */ 36 /* See if the attacker or defender is the player */