BSD 4_3_Net_2 release
[unix-history] / usr / src / games / larn / moreobj.c
index 65f8059..f834b1a 100644 (file)
@@ -9,6 +9,8 @@
  */
 #include "header.h"
 
  */
 #include "header.h"
 
+static void ohear();
+
 /*
  *     ******
  *     OALTAR
 /*
  *     ******
  *     OALTAR
@@ -98,7 +100,8 @@ oaltar()
 /*
        function to cast a +3 protection on the player
  */
 /*
        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;
        {
        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
 /*
        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();
        }
                }
        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();
-       }