Rogue V5: fix elemental wands.

Bolts often failed to hit, due to some struct members not being
initialized.

Reported by 'LazyCat' from RogueTemple.
This commit is contained in:
John "Elwin" Edwards 2018-01-12 18:02:39 -05:00
parent bb37c1c3f7
commit 82dca01969

View file

@ -310,6 +310,8 @@ fire_bolt(const coord *start, coord *dir, const char *name)
bolt.o_type = WEAPON; bolt.o_type = WEAPON;
bolt.o_which = FLAME; bolt.o_which = FLAME;
strncpy(bolt.o_hurldmg,"6x6",sizeof(bolt.o_hurldmg)); strncpy(bolt.o_hurldmg,"6x6",sizeof(bolt.o_hurldmg));
strncpy(bolt.o_damage,"0x0",sizeof(bolt.o_damage));
bolt.o_launch = -1;
bolt.o_hplus = 100; bolt.o_hplus = 100;
bolt.o_dplus = 0; bolt.o_dplus = 0;
weap_info[FLAME].oi_name = name; weap_info[FLAME].oi_name = name;