comparison rogue4/potions.c @ 225:4f6e056438eb

Merge the GCC5 and build fix branches.
author John "Elwin" Edwards
date Wed, 02 Mar 2016 21:28:34 -0500
parents 1b73a8641b37
children 696277507a2e
comparison
equal deleted inserted replaced
224:4d0f53998e8a 225:4f6e056438eb
15 15
16 /* 16 /*
17 * quaff: 17 * quaff:
18 * Quaff a potion from the pack 18 * Quaff a potion from the pack
19 */ 19 */
20 quaff() 20 void
21 quaff(void)
21 { 22 {
22 register THING *obj, *th; 23 register THING *obj, *th;
23 register bool discardit = FALSE; 24 register bool discardit = FALSE;
24 25
25 obj = get_item("quaff", POTION); 26 obj = get_item("quaff", POTION);
201 202
202 /* 203 /*
203 * invis_on: 204 * invis_on:
204 * Turn on the ability to see invisible 205 * Turn on the ability to see invisible
205 */ 206 */
206 invis_on() 207 void
208 invis_on(void)
207 { 209 {
208 register THING *th; 210 register THING *th;
209 211
210 player.t_flags |= CANSEE; 212 player.t_flags |= CANSEE;
211 for (th = mlist; th != NULL; th = next(th)) 213 for (th = mlist; th != NULL; th = next(th))
218 220
219 /* 221 /*
220 * see_monst: 222 * see_monst:
221 * Put on or off seeing monsters on this level 223 * Put on or off seeing monsters on this level
222 */ 224 */
223 turn_see(turn_off) 225 bool
224 register bool turn_off; 226 turn_see(bool turn_off)
225 { 227 {
226 register THING *mp; 228 register THING *mp;
227 register bool can_see, add_new; 229 register bool can_see, add_new;
228 230
229 add_new = FALSE; 231 add_new = FALSE;