comparison srogue/potions.c @ 217:94a0d9dd5ce1

Super-Rogue: convert to ANSI-style function declarations. This fixes most of the build warnings.
author John "Elwin" Edwards
date Sun, 31 Jan 2016 13:45:07 -0500
parents 3aa87373c908
children e7862a021609
comparison
equal deleted inserted replaced
216:b24545357d2e 217:94a0d9dd5ce1
21 21
22 /* 22 /*
23 * quaff: 23 * quaff:
24 * Let the hero drink a potion 24 * Let the hero drink a potion
25 */ 25 */
26 quaff() 26 void
27 quaff(void)
27 { 28 {
28 reg struct object *obj; 29 reg struct object *obj;
29 reg struct linked_list *item, *titem; 30 reg struct linked_list *item, *titem;
30 reg struct thing *th; 31 reg struct thing *th;
31 reg int wh; 32 reg int wh;
187 chg_abil(CON,1,TRUE); 188 chg_abil(CON,1,TRUE);
188 msg("You begin to feel much better."); 189 msg("You begin to feel much better.");
189 p_know[P_XHEAL] = TRUE; 190 p_know[P_XHEAL] = TRUE;
190 if (!iswearing(R_SLOW)) 191 if (!iswearing(R_SLOW))
191 notslow(FALSE); 192 notslow(FALSE);
192 unconfuse(); 193 unconfuse(FALSE);
193 extinguish(unconfuse); 194 extinguish(unconfuse);
194 sight(FALSE); 195 sight(FALSE);
195 } 196 }
196 when P_HASTE: 197 when P_HASTE:
197 if (!curse) { 198 if (!curse) {