comparison arogue7/wizard.c @ 304:e52a8a7ad4c5

Fix many compiler warnings. There should only be two changes in behavior: arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly applied to characters who are not monks instead of monks who are not empty-handed. urogue/fight.c: fixed an interaction with the "debug" macro that could cause the wrong message to be displayed.
author John "Elwin" Edwards
date Wed, 14 Apr 2021 18:55:33 -0400
parents f9ef86cf22b2
children
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
36 create_obj(bool prompt, int which_item, int which_type) 36 create_obj(bool prompt, int which_item, int which_type)
37 { 37 {
38 reg struct linked_list *item; 38 reg struct linked_list *item;
39 reg struct object *obj; 39 reg struct object *obj;
40 reg int wh; 40 reg int wh;
41 reg char ch, newitem, newtype, whc, msz, *pt; 41 reg char ch, newitem, newtype, msz, *pt;
42 signed char whc;
42 WINDOW *thiswin; 43 WINDOW *thiswin;
43 44
44 thiswin = cw; 45 thiswin = cw;
45 if (prompt) { 46 if (prompt) {
46 bool nogood = TRUE; 47 bool nogood = TRUE;
126 msg("Even wizards can't create %s !!",pt); 127 msg("Even wizards can't create %s !!",pt);
127 return; 128 return;
128 } 129 }
129 if(msz == 1) { /* if only one type of item */ 130 if(msz == 1) { /* if only one type of item */
130 ch = 'a'; 131 ch = 'a';
132 newtype = 0;
131 } 133 }
132 else if (prompt) { 134 else if (prompt) {
133 register struct magic_item *wmi; 135 register struct magic_item *wmi;
134 char wmn; 136 char wmn;
135 register int ii; 137 register int ii;