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:
parent
bb37c1c3f7
commit
82dca01969
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue