Mercurial > hg > early-roguelike
comparison arogue7/effects.c @ 219:f9ef86cf22b2
Advanced Rogue 7: convert to ANSI-style function declarations.
Almost 1500 lines of compiler warnings remain, and the GCC developers
are already working on a new version with even more warnings turned on
by default.
| author | John "Elwin" Edwards | 
|---|---|
| date | Fri, 19 Feb 2016 21:02:28 -0500 | 
| parents | b786053d2f37 | 
| children | e1cd27c5464f | 
   comparison
  equal
  deleted
  inserted
  replaced
| 218:56e748983fa8 | 219:f9ef86cf22b2 | 
|---|---|
| 19 /* | 19 /* | 
| 20 * effect: | 20 * effect: | 
| 21 * Check for effects of one thing hitting another thing. Return | 21 * Check for effects of one thing hitting another thing. Return | 
| 22 * the reason code if the defender is killed. Otherwise return 0. | 22 * the reason code if the defender is killed. Otherwise return 0. | 
| 23 */ | 23 */ | 
| 24 effect(att, def, weap, thrown, see_att, see_def) | 24 int | 
| 25 register struct thing *att, *def; | 25 effect(struct thing *att, struct thing *def, struct object *weap, bool thrown, | 
| 26 struct object *weap; | 26 bool see_att, bool see_def) | 
| 27 bool thrown; | |
| 28 register bool see_att, see_def; | |
| 29 { | 27 { | 
| 30 register bool att_player, def_player; | 28 register bool att_player, def_player; | 
| 31 char attname[LINELEN+1], defname[LINELEN+1]; | 29 char attname[LINELEN+1], defname[LINELEN+1]; | 
| 32 | 30 | 
| 33 /* See if the attacker or defender is the player */ | 31 /* See if the attacker or defender is the player */ | 
