Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup remains to be done.
This commit is contained in:
parent
de95b19cee
commit
7d459d7d36
47 changed files with 608 additions and 591 deletions
|
|
@ -327,9 +327,10 @@ picked_up:
|
|||
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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue