Mercurial > hg > early-roguelike
diff arogue7/pack.c @ 300:0250220d8cdd
Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup
remains to be done.
author | John "Elwin" Edwards |
---|---|
date | Fri, 22 Nov 2019 21:18:27 -0500 |
parents | e1cd27c5464f |
children |
line wrap: on
line diff
--- a/arogue7/pack.c Sun Feb 11 15:37:33 2018 -0500 +++ b/arogue7/pack.c Fri Nov 22 21:18:27 2019 -0500 @@ -327,9 +327,10 @@ start_daemon(eat_gold, obj, AFTER); } /* For the axe start a fuse to change player to a fighter. */ - if (obj->o_which == AXE_AKLAD) + if (obj->o_which == AXE_AKLAD) { newclass = C_FIGHTER; fuse(changeclass, &newclass, roll(20, 20), AFTER); + } if (cur_weapon != NULL) { msg("The artifact insists you release your current weapon."); if (!dropcheck(cur_weapon)) {