comparison arogue7/actions.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 adfa37e67084
children f9ef86cf22b2
comparison
equal deleted inserted replaced
199:efdbeec0816d 200:1cd604c827a3
237 237
238 m_breathe(tp) 238 m_breathe(tp)
239 register struct thing *tp; 239 register struct thing *tp;
240 { 240 {
241 register int damage; 241 register int damage;
242 register char *breath; 242 register char *breath = "";
243 243
244 damage = tp->t_stats.s_hpt; 244 damage = tp->t_stats.s_hpt;
245 turn_off(*tp, CANSURPRISE); 245 turn_off(*tp, CANSURPRISE);
246 246
247 /* Will it breathe at random */ 247 /* Will it breathe at random */
781 781
782 runners(segments) 782 runners(segments)
783 int segments; /* Number of segments since last called */ 783 int segments; /* Number of segments since last called */
784 { 784 {
785 register struct linked_list *item; 785 register struct linked_list *item;
786 register struct thing *tp; 786 register struct thing *tp = NULL;
787 register min_time = 20; /* Minimum time until a monster can act */ 787 register min_time = 20; /* Minimum time until a monster can act */
788 788
789 /* 789 /*
790 * loop thru the list of running (wandering) monsters and see what 790 * loop thru the list of running (wandering) monsters and see what
791 * each one will do this time. 791 * each one will do this time.