comparison xrogue/main.c @ 239:837044d2c362

Merge the GCC5 and build fix branches. This fixes all warnings produced by GCC 5, except the ones related to system functions. Those could be fixed by including the proper headers, but it would be better to replace the system-dependent code with functions from mdport.c.
author John "Elwin" Edwards
date Fri, 11 Mar 2016 19:47:52 -0500
parents 7c1cb43f346e
children 3d4252fa2ed3
comparison
equal deleted inserted replaced
232:bac2c81fec78 239:837044d2c362
242 242
243 /* 243 /*
244 * Start up daemons and fuses 244 * Start up daemons and fuses
245 */ 245 */
246 start_daemon(doctor, &player, AFTER); 246 start_daemon(doctor, &player, AFTER);
247 fuse(swander, (VOID *)NULL, WANDERTIME, AFTER); 247 fuse(swander, NULL, WANDERTIME, AFTER);
248 /* Give characters their innate abilities */ 248 /* Give characters their innate abilities */
249 if (player.t_ctype == C_MAGICIAN || player.t_ctype == C_RANGER) 249 if (player.t_ctype == C_MAGICIAN || player.t_ctype == C_RANGER)
250 fuse(spell_recovery, (VOID *)NULL, SPELLTIME, AFTER); 250 fuse(spell_recovery, NULL, SPELLTIME, AFTER);
251 if (player.t_ctype == C_DRUID || player.t_ctype == C_MONK) 251 if (player.t_ctype == C_DRUID || player.t_ctype == C_MONK)
252 fuse(chant_recovery, (VOID *)NULL, SPELLTIME, AFTER); 252 fuse(chant_recovery, NULL, SPELLTIME, AFTER);
253 if (player.t_ctype == C_CLERIC || player.t_ctype == C_PALADIN) 253 if (player.t_ctype == C_CLERIC || player.t_ctype == C_PALADIN)
254 fuse(prayer_recovery, (VOID *)NULL, SPELLTIME, AFTER); 254 fuse(prayer_recovery, NULL, SPELLTIME, AFTER);
255 start_daemon(stomach, (VOID *)NULL, AFTER); 255 start_daemon(stomach, NULL, AFTER);
256 if (player.t_ctype == C_THIEF || 256 if (player.t_ctype == C_THIEF ||
257 player.t_ctype == C_ASSASSIN || 257 player.t_ctype == C_ASSASSIN ||
258 player.t_ctype == C_MONK) 258 player.t_ctype == C_MONK)
259 start_daemon(trap_look, (VOID *)NULL, AFTER); 259 start_daemon(trap_look, NULL, AFTER);
260 260
261 /* Does this character have any special knowledge? */ 261 /* Does this character have any special knowledge? */
262 switch (player.t_ctype) { 262 switch (player.t_ctype) {
263 case C_ASSASSIN: 263 case C_ASSASSIN:
264 /* Assassins automatically recognize poison */ 264 /* Assassins automatically recognize poison */