Mercurial > hg > early-roguelike
comparison arogue7/fight.c @ 211:382ff498acdd
Initialize some more pointers for the benefit of MSVC.
There should be no more errors with Visual Studio 2015, in Debug or
Release mode.
author | John "Elwin" Edwards |
---|---|
date | Thu, 21 Jan 2016 21:10:23 -0500 |
parents | 1cd604c827a3 |
children | f9ef86cf22b2 |
comparison
equal
deleted
inserted
replaced
210:c4f2e1bda8b0 | 211:382ff498acdd |
---|---|
731 register struct object *weapon; | 731 register struct object *weapon; |
732 bool see_att, see_def; | 732 bool see_att, see_def; |
733 register char *er, *ee; | 733 register char *er, *ee; |
734 bool back_stab, thrown, short_msg; | 734 bool back_stab, thrown, short_msg; |
735 { | 735 { |
736 register char *s; | 736 register char *s = ""; |
737 char att_name[LINELEN], /* Name of attacker */ | 737 char att_name[LINELEN], /* Name of attacker */ |
738 def_name[LINELEN]; /* Name of defender */ | 738 def_name[LINELEN]; /* Name of defender */ |
739 | 739 |
740 /* If we can't see either the attacker or defender, don't say anything */ | 740 /* If we can't see either the attacker or defender, don't say anything */ |
741 if (!see_att && !see_def) return; | 741 if (!see_att && !see_def) return; |
795 register struct object *weapon; | 795 register struct object *weapon; |
796 bool see_att, see_def; | 796 bool see_att, see_def; |
797 register char *er, *ee; | 797 register char *er, *ee; |
798 bool thrown, short_msg; | 798 bool thrown, short_msg; |
799 { | 799 { |
800 register char *s; | 800 register char *s = ""; |
801 char | 801 char |
802 att_name[LINELEN], /* Name of attacker */ | 802 att_name[LINELEN], /* Name of attacker */ |
803 def_name[LINELEN]; /* Name of defender */ | 803 def_name[LINELEN]; /* Name of defender */ |
804 | 804 |
805 /* If we can't see either the attacker or defender, don't say anything */ | 805 /* If we can't see either the attacker or defender, don't say anything */ |