X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=cheat.c;h=30fd0ced522891cf206f786d2c10c0ee648dd318;hp=d1e45e00a418675a1c50087c7b63d6de24c98a30;hb=5fcebc66aeca21c67a8187c462d9091a18121363;hpb=8bc08773fa4ac22f7fd3c89d8e8be92d2cab616a diff --git a/cheat.c b/cheat.c index d1e45e0..30fd0ce 100644 --- a/cheat.c +++ b/cheat.c @@ -4,11 +4,8 @@ #include #include #include "advent.h" -#include "linenoise/linenoise.h" #include "dungeon.h" -struct game_t game; - FILE *logfp = NULL, *rfp = NULL; bool oldstyle = false; bool editline = true; @@ -65,20 +62,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;