Mercurial > hg > early-roguelike
diff srogue/daemons.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 | f2951c4e28d9 |
children |
line wrap: on
line diff
--- a/srogue/daemons.c Thu Jan 28 18:55:47 2016 -0500 +++ b/srogue/daemons.c Sun Jan 31 13:45:07 2016 -0500 @@ -23,8 +23,8 @@ * doctor: * A healing daemon that restores hit points after rest */ -doctor(fromfuse) -int fromfuse; +void +doctor(int fromfuse) { reg int *thp, lv, ohp, ccon; @@ -63,8 +63,8 @@ * Swander: * Called when it is time to start rolling for wandering monsters */ -swander(fromfuse) -int fromfuse; +void +swander(int fromfuse) { start_daemon(rollwand, TRUE, AFTER); } @@ -74,8 +74,8 @@ * rollwand: * Called to roll to see if a wandering monster starts up */ -rollwand(fromfuse) -int fromfuse; +void +rollwand(int fromfuse) { if (++between >= 4) { @@ -94,8 +94,8 @@ * unconfuse: * Release the poor player from his confusion */ -unconfuse(fromfuse) -int fromfuse; +void +unconfuse(int fromfuse) { if (pl_on(ISHUH)) msg("You feel less confused now."); @@ -106,8 +106,8 @@ * unsee: * He lost his see invisible power */ -unsee(fromfuse) -int fromfuse; +void +unsee(int fromfuse) { player.t_flags &= ~CANSEE; } @@ -116,8 +116,8 @@ * sight: * He gets his sight back */ -sight(fromfuse) -int fromfuse; +void +sight(int fromfuse) { if (pl_on(ISBLIND)) msg("The veil of darkness lifts."); @@ -129,8 +129,8 @@ * nohaste: * End the hasting */ -nohaste(fromfuse) -int fromfuse; +void +nohaste(int fromfuse) { if (pl_on(ISHASTE)) msg("You feel yourself slowing down."); @@ -142,8 +142,8 @@ * stomach: * Digest the hero's food */ -stomach(fromfuse) -int fromfuse; +void +stomach(int fromfuse) { reg int oldfood, old_hunger; @@ -188,8 +188,8 @@ * noteth: * Hero is no longer etherereal */ -noteth(fromfuse) -int fromfuse; +void +noteth(int fromfuse) { int ch; @@ -209,8 +209,8 @@ * sapem: * Sap the hero's life away */ -sapem(fromfuse) -int fromfuse; +void +sapem(int fromfuse) { chg_abil(rnd(4) + 1, -1, TRUE); fuse(sapem, TRUE, 150); @@ -221,8 +221,8 @@ * notslow: * Restore the hero's normal speed */ -notslow(fromfuse) -int fromfuse; +void +notslow(int fromfuse) { if (pl_on(ISSLOW)) msg("You no longer feel hindered."); @@ -233,8 +233,8 @@ * notregen: * Hero is no longer regenerative */ -notregen(fromfuse) -int fromfuse; +void +notregen(int fromfuse) { if (pl_on(ISREGEN)) msg("You no longer feel bolstered."); @@ -245,8 +245,8 @@ * notinvinc: * Hero not invincible any more */ -notinvinc(fromfuse) -int fromfuse; +void +notinvinc(int fromfuse) { if (pl_on(ISINVINC)) msg("You no longer feel invincible.");