X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=cheat.c;h=a9b7b6c6f2af3071a1f36079ad0e3eab06686afa;hb=8cc5ee54127423c75814a6b5cc61d48d4075331b;hp=d1e45e00a418675a1c50087c7b63d6de24c98a30;hpb=8bc08773fa4ac22f7fd3c89d8e8be92d2cab616a;p=open-adventure.git diff --git a/cheat.c b/cheat.c index d1e45e0..a9b7b6c 100644 --- a/cheat.c +++ b/cheat.c @@ -7,8 +7,6 @@ #include "linenoise/linenoise.h" #include "dungeon.h" -struct game_t game; - FILE *logfp = NULL, *rfp = NULL; bool oldstyle = false; bool editline = true; @@ -65,20 +63,10 @@ int main(int argc, char *argv[]) FILE *fp = NULL; - game.lcg_a = 1093; - game.lcg_c = 221587; - game.lcg_m = 1048576; - srand(time(NULL)); - long seedval = (long)rand(); - set_seed(seedval); - /* Initialize game variables */ initialise(); make_zzword(game.zzword); - game.newloc = LOC_START; - game.loc = LOC_START; - game.limit = GAMELIMIT; // apply cheats game.numdie = numdie;