Replace homebrew IABS() with C kubrary labs(3).
[open-adventure.git] / actions1.c
index c82a7bc999571009957b6b244c3be19512950e03..25e05df5d2848e816341109bcbb38cf27bb50eed 100644 (file)
@@ -1,8 +1,6 @@
 #include <stdlib.h>
 #include <stdbool.h>
-#include "misc.h"
-#include "main.h"
-#include "share.h"
+#include "advent.h"
 #include "funcs.h"
 #include "database.h"
 
@@ -556,7 +554,7 @@ L8305:      DATIME(&I,&K);
        SAVWRD(KK,K);
        if(K != 0) goto L8318;
        K=NUL;
-       ZZWORD=RNDVOC(3,ZZWORD-MESH*2)+MESH*2;
+       ZZWORD=RNDVOC(3,ZZWORD);
        if(KK > 0) return(8);
        RSPEAK(266);
        exit(0);
@@ -600,10 +598,10 @@ L9320:    if(OBJ != RUG) return(2011);
 L8330: SPK=228;
        K=LOCSND[LOC];
        if(K == 0) goto L8332;
-       RSPEAK(IABS(K));
+       RSPEAK(labs(K));
        if(K < 0) return(2012);
        SPK=0;
-L8332: SETPRM(1,ZZWORD-MESH*2,0);
+L8332: SETPRM(1,ZZWORD,0);
        /* 8335 */ for (I=1; I<=100; I++) {
        if(!HERE(I) || OBJSND[I] == 0 || PROP[I] < 0) goto L8335;
        PSPEAK(I,OBJSND[I]+PROP[I]);