Mercurial > hg > early-roguelike
comparison xrogue/effects.c @ 225:4f6e056438eb
Merge the GCC5 and build fix branches.
author | John "Elwin" Edwards |
---|---|
date | Wed, 02 Mar 2016 21:28:34 -0500 |
parents | f54901b9c39b |
children | 7c1cb43f346e |
comparison
equal
deleted
inserted
replaced
224:4d0f53998e8a | 225:4f6e056438eb |
---|---|
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 */ |