X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=cheat.c;h=798460464d3b75d0b760155f8322fb7015b66816;hb=a6954db376c00b4457d7cc8f4fa4ef32deb9397d;hp=d1e45e00a418675a1c50087c7b63d6de24c98a30;hpb=8bc08773fa4ac22f7fd3c89d8e8be92d2cab616a;p=open-adventure.git diff --git a/cheat.c b/cheat.c index d1e45e0..7984604 100644 --- a/cheat.c +++ b/cheat.c @@ -4,14 +4,10 @@ #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; bool prompt = true; int main(int argc, char *argv[]) @@ -65,20 +61,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;