Mercurial > hg > early-roguelike
comparison arogue7/fight.c @ 200:1cd604c827a3
Advanced Rogue 7: initialize multiple variables.
MSVC complained that they might be used uninitialized. In some cases,
this might have been possible.
XRogue already has initializations for all these variables.
author | John "Elwin" Edwards |
---|---|
date | Wed, 12 Aug 2015 15:42:02 -0400 |
parents | 66b0263af424 |
children | 382ff498acdd |
comparison
equal
deleted
inserted
replaced
199:efdbeec0816d | 200:1cd604c827a3 |
---|---|
329 bool hurl; | 329 bool hurl; |
330 struct object *cur_weapon; | 330 struct object *cur_weapon; |
331 bool back_stab; | 331 bool back_stab; |
332 { | 332 { |
333 register struct stats *att, *def; | 333 register struct stats *att, *def; |
334 register char *cp; | 334 register char *cp = NULL; |
335 register int ndice, nsides, nplus, def_arm; | 335 register int ndice, nsides, nplus, def_arm; |
336 bool did_hit = FALSE; | 336 bool did_hit = FALSE; |
337 int prop_hplus, prop_dplus; | 337 int prop_hplus, prop_dplus; |
338 int vampiric_damage; | 338 int vampiric_damage; |
339 | 339 |