X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/8ea39a0b86534f5959664e857b299c918c2537aa..af359dea2e5ab3e937b62107ecd6a51d78189ed7:/usr/src/games/larn/moreobj.c diff --git a/usr/src/games/larn/moreobj.c b/usr/src/games/larn/moreobj.c index 65f8059916..f834b1a136 100644 --- a/usr/src/games/larn/moreobj.c +++ b/usr/src/games/larn/moreobj.c @@ -9,6 +9,8 @@ */ #include "header.h" +static void ohear(); + /* * ****** * OALTAR @@ -98,7 +100,8 @@ oaltar() /* function to cast a +3 protection on the player */ -static ohear() +static void +ohear() { lprcat("\nYou have been heard!"); if (c[ALTPRO]==0) c[MOREDEFENSES]+=3; @@ -298,6 +301,23 @@ ofountain() } } +/* + *** + FCH + *** + + subroutine to process an up/down of a character attribute for ofountain + */ +static void +fch(how,x) + int how; + long *x; + { + if (how < 0) { lprcat(" went down by one!"); --(*x); } + else { lprcat(" went up by one!"); (*x)++; } + bottomline(); + } + /* a subroutine to raise or lower character levels if x > 0 they are raised if x < 0 they are lowered @@ -350,19 +370,3 @@ fntchange(how) } cursors(); } - -/* - *** - FCH - *** - - subroutine to process an up/down of a character attribute for ofountain - */ -static fch(how,x) - int how; - long *x; - { - if (how < 0) { lprcat(" went down by one!"); --(*x); } - else { lprcat(" went up by one!"); (*x)++; } - bottomline(); - }