X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.c;h=7a065b2fd91ca3dc4f955be85b93f893f99ca558;hb=fda1abed97075962560d2e2d12d1a8d931ed371d;hp=53aff69af94fd7088b4c1a1425da42a954527ab4;hpb=f0528b0ded7e921510ecdece2a36ce94c6414044;p=open-adventure.git diff --git a/main.c b/main.c index 53aff69..7a065b2 100644 --- a/main.c +++ b/main.c @@ -8,8 +8,9 @@ #include #include #include +#include #include "main.h" -#include "database/database.h" +#include "database.h" #include "misc.h" long ABB[186], ATLOC[186], BLKLIN = true, DFLAG, @@ -29,7 +30,7 @@ long ABBNUM, AMBER, ATTACK, AXE, BACK, BATTER, BEAR, BIRD, BLOOD, BONUS, I, INVENT, IGO, IWEST, J, JADE, K, K2, KEYS, KK, KNFLOC, KNIFE, KQ, L, LAMP, LIMIT, LL, LMWARN, LOC, LOCK, LOOK, - MAGZIN, MAXDIE, MAXTRS, MESH = 123456789, + MAGZIN, MAXDIE, MAXTRS, MESSAG, MIRROR, MXSCOR, NEWLOC, NOVICE, NUGGET, NUL, NUMDIE, OBJ, ODLOC[7], OGRE, OIL, OLDLC2, OLDLOC, OLDOBJ, OYSTER, @@ -130,7 +131,7 @@ int main(int argc, char *argv[]) { L1: SETUP= -1; I=0; - ZZWORD=RNDVOC(3,0)+MESH*2; + ZZWORD=RNDVOC(3,0); NOVICE=YES(stdin, 65,1,0); NEWLOC=1; LOC=1; @@ -155,7 +156,7 @@ static bool fallback_handler(signed char *buf) set_seed(sv); printf("Seed set to %ld\n", sv); // here we reconfigure any global game state that uses random numbers - ZZWORD=RNDVOC(3,0)+MESH*2; + ZZWORD=RNDVOC(3,0); return true; } return false; @@ -920,4 +921,5 @@ L12400: LIMIT= -1; L18999: RSPEAK(SPK); L19000: RSPEAK(136); score(0); + return true; }