Mercurial > hg > early-roguelike
comparison arogue7/daemons.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 | cadff8f047a1 |
children | f9ef86cf22b2 |
comparison
equal
deleted
inserted
replaced
199:efdbeec0816d | 200:1cd604c827a3 |
---|---|
415 * make some potion for the guy in the Alchemy jug | 415 * make some potion for the guy in the Alchemy jug |
416 */ | 416 */ |
417 alchemy(obj) | 417 alchemy(obj) |
418 register struct object *obj; | 418 register struct object *obj; |
419 { | 419 { |
420 register struct object *tobj; | 420 register struct object *tobj = NULL; |
421 register struct linked_list *item; | 421 register struct linked_list *item; |
422 | 422 |
423 /* | 423 /* |
424 * verify that the object pointer we have still points to an alchemy | 424 * verify that the object pointer we have still points to an alchemy |
425 * jug (hopefully the right one!) because the hero could have thrown | 425 * jug (hopefully the right one!) because the hero could have thrown |
533 /* | 533 /* |
534 * this is called to charge up the quill of Nagrom | 534 * this is called to charge up the quill of Nagrom |
535 */ | 535 */ |
536 quill_charge() | 536 quill_charge() |
537 { | 537 { |
538 register struct object *tobj; | 538 register struct object *tobj = NULL; |
539 register struct linked_list *item; | 539 register struct linked_list *item; |
540 | 540 |
541 /* | 541 /* |
542 * find the Quill of Nagrom in the hero's pack. It should still be there | 542 * find the Quill of Nagrom in the hero's pack. It should still be there |
543 * because it can't be dropped. If its not then don't do anything. | 543 * because it can't be dropped. If its not then don't do anything. |