comparison arogue7/misc.c @ 151:cadff8f047a1

arogue7, xrogue: rename daemon() to start_daemon(). This prevents conflict with the BSD/OSX daemon() system function.
author John "Elwin" Edwards
date Thu, 28 May 2015 10:21:43 -0400
parents b786053d2f37
children 1cd604c827a3
comparison
equal deleted inserted replaced
150:a307ff9cd95e 151:cadff8f047a1
114 114
115 /* 115 /*
116 * if he becomes a thief then add the trap_look() daemon 116 * if he becomes a thief then add the trap_look() daemon
117 */ 117 */
118 if (newclass == C_THIEF || newclass == C_ASSASIN || newclass == C_MONK) 118 if (newclass == C_THIEF || newclass == C_ASSASIN || newclass == C_MONK)
119 daemon(trap_look, 0, AFTER); 119 start_daemon(trap_look, 0, AFTER);
120 char_type = player.t_ctype = newclass; 120 char_type = player.t_ctype = newclass;
121 save = pstats.s_hpt; 121 save = pstats.s_hpt;
122 max_stats.s_hpt = pstats.s_hpt = 0; 122 max_stats.s_hpt = pstats.s_hpt = 0;
123 max_stats.s_lvl = pstats.s_lvl = 0; 123 max_stats.s_lvl = pstats.s_lvl = 0;
124 max_stats.s_lvladj = pstats.s_lvladj = 0; 124 max_stats.s_lvladj = pstats.s_lvladj = 0;