comparison 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
comparison
equal deleted inserted replaced
299:74351bf23e5e 300:0250220d8cdd
325 purse = 1; /* fudge to get right msg from eat_gold() */ 325 purse = 1; /* fudge to get right msg from eat_gold() */
326 eat_gold(obj); 326 eat_gold(obj);
327 start_daemon(eat_gold, obj, AFTER); 327 start_daemon(eat_gold, obj, AFTER);
328 } 328 }
329 /* For the axe start a fuse to change player to a fighter. */ 329 /* For the axe start a fuse to change player to a fighter. */
330 if (obj->o_which == AXE_AKLAD) 330 if (obj->o_which == AXE_AKLAD) {
331 newclass = C_FIGHTER; 331 newclass = C_FIGHTER;
332 fuse(changeclass, &newclass, roll(20, 20), AFTER); 332 fuse(changeclass, &newclass, roll(20, 20), AFTER);
333 }
333 if (cur_weapon != NULL) { 334 if (cur_weapon != NULL) {
334 msg("The artifact insists you release your current weapon."); 335 msg("The artifact insists you release your current weapon.");
335 if (!dropcheck(cur_weapon)) { 336 if (!dropcheck(cur_weapon)) {
336 pstats.s_hpt = -1; 337 pstats.s_hpt = -1;
337 msg("The artifact forces your weapon into your heart."); 338 msg("The artifact forces your weapon into your heart.");