X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=init.c;h=220f9cbe197aa6084376683dda0da8934995c9bb;hb=c8f6ff3701534e6c1ce59cf3e33aec5e824ed144;hp=0e52a32c5ce3d66b35f0cf3743d0675c07e32d3a;hpb=a678b68b39f21f8b2853e45c6138d815a82a3423;p=open-adventure.git diff --git a/init.c b/init.c index 0e52a32..220f9cb 100644 --- a/init.c +++ b/init.c @@ -5,7 +5,6 @@ #include "advent.h" #include "database.h" -#include "newdb.h" /* * Initialisation @@ -226,7 +225,7 @@ void initialise(void) /* Clear the hint stuff. game.hintlc[i] is how long he's been at LOC * with cond bit i. game.hinted[i] is true iff hint i has been * used. */ - for (int i = 1; i <= HNTMAX; i++) { + for (int i = 1; i <= HINT_COUNT; i++) { game.hinted[i] = false; game.hintlc[i] = 0; } @@ -352,16 +351,10 @@ void initialise(void) * game.limit Lifetime of lamp (not set here) * maximum_deaths Number of reincarnation messages available (up to 5) * game.numdie Number of times killed so far - * game.thresh Next #turns threshhold (-1 if none) - * game.trndex Index in TRNVAL of next threshold (db section 14) * game.trnluz # points lost so far due to number of turns used * game.turns Tallies how many commands he's given (ignores yes/no) * Logicals were explained earlier */ game.turns = 0; - game.trndex = 1; - game.thresh = -1; - if (TRNVLS > 0) - game.thresh = MOD(TRNVAL[1], 100000) + 1; game.trnluz = 0; game.lmwarn = false; game.iwest = 0;