Mercurial > hg > early-roguelike
comparison arogue5/player.c @ 195:beab22b087a1
Advanced Rogue 5: initialize some variables.
author | John "Elwin" Edwards |
---|---|
date | Tue, 11 Aug 2015 13:13:08 -0400 |
parents | 34a87d84ea31 |
children | 56e748983fa8 |
comparison
equal
deleted
inserted
replaced
194:68a63ddfbe14 | 195:beab22b087a1 |
---|---|
166 } | 166 } |
167 if (which_spell >= 0 && which_spell < num_spells) nohw = TRUE; | 167 if (which_spell >= 0 && which_spell < num_spells) nohw = TRUE; |
168 | 168 |
169 else if (slow_invent) { | 169 else if (slow_invent) { |
170 register char c; | 170 register char c; |
171 char *spellp; | 171 char *spellp = ""; |
172 | 172 |
173 for (i=0; i<num_spells; i++) { | 173 for (i=0; i<num_spells; i++) { |
174 msg(""); | 174 msg(""); |
175 if (magic_spells[i].s_type == TYP_POTION) | 175 if (magic_spells[i].s_type == TYP_POTION) |
176 spellp = p_magic[magic_spells[i].s_which].mi_name; | 176 spellp = p_magic[magic_spells[i].s_which].mi_name; |
373 } | 373 } |
374 if (which_prayer >= 0 && which_prayer < num_prayers) nohw = TRUE; | 374 if (which_prayer >= 0 && which_prayer < num_prayers) nohw = TRUE; |
375 | 375 |
376 else if (slow_invent) { | 376 else if (slow_invent) { |
377 register char c; | 377 register char c; |
378 char *prayerp; | 378 char *prayerp = ""; |
379 | 379 |
380 for (i=0; i<num_prayers; i++) { | 380 for (i=0; i<num_prayers; i++) { |
381 msg(""); | 381 msg(""); |
382 if (cleric_spells[i].s_type == TYP_POTION) | 382 if (cleric_spells[i].s_type == TYP_POTION) |
383 prayerp = p_magic[cleric_spells[i].s_which].mi_name; | 383 prayerp = p_magic[cleric_spells[i].s_which].mi_name; |