Mercurial > hg > early-roguelike
diff xrogue/sticks.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 | 2236ef808bcb |
children | e52a8a7ad4c5 |
line wrap: on
line diff
--- a/xrogue/sticks.c Tue Mar 08 19:45:41 2016 -0500 +++ b/xrogue/sticks.c Fri Mar 11 19:47:52 2016 -0500 @@ -513,7 +513,7 @@ pstats.s_hpt = -1; msg("Your life has been sucked out from you! --More--"); wait_for(' '); - death(zapper); + death(zapper->t_index); } else msg("You feel a great drain on your system."); @@ -613,7 +613,7 @@ turn_on(player, HASDISEASE); turn_on(player, HASINFEST); turn_on(player, DOROT); - fuse(cure_disease, (VOID *)NULL, roll(HEALTIME,SICKTIME), AFTER); + fuse(cure_disease, NULL, roll(HEALTIME,SICKTIME), AFTER); infest_dam++; } else if (sick == FALSE) msg("You feel momentarily sick");