Mercurial > hg > early-roguelike
comparison rogue5/sticks.c @ 295:1e1c81fbb533
Rogue V5: fix elemental wands.
Bolts often failed to hit, due to some struct members not being
initialized.
Reported by 'LazyCat' from RogueTemple.
author | John "Elwin" Edwards |
---|---|
date | Fri, 12 Jan 2018 18:02:39 -0500 |
parents | f502bf60e6e4 |
children |
comparison
equal
deleted
inserted
replaced
294:fe6b7a1a6dfc | 295:1e1c81fbb533 |
---|---|
308 THING bolt; | 308 THING bolt; |
309 | 309 |
310 bolt.o_type = WEAPON; | 310 bolt.o_type = WEAPON; |
311 bolt.o_which = FLAME; | 311 bolt.o_which = FLAME; |
312 strncpy(bolt.o_hurldmg,"6x6",sizeof(bolt.o_hurldmg)); | 312 strncpy(bolt.o_hurldmg,"6x6",sizeof(bolt.o_hurldmg)); |
313 strncpy(bolt.o_damage,"0x0",sizeof(bolt.o_damage)); | |
314 bolt.o_launch = -1; | |
313 bolt.o_hplus = 100; | 315 bolt.o_hplus = 100; |
314 bolt.o_dplus = 0; | 316 bolt.o_dplus = 0; |
315 weap_info[FLAME].oi_name = name; | 317 weap_info[FLAME].oi_name = name; |
316 switch (dir->y + dir->x) | 318 switch (dir->y + dir->x) |
317 { | 319 { |