projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move most build instructions into INSTALL.adoc.
[open-adventure.git]
/
cheat.c
diff --git
a/cheat.c
b/cheat.c
index d1e45e00a418675a1c50087c7b63d6de24c98a30..30fd0ced522891cf206f786d2c10c0ee648dd318 100644
(file)
--- a/
cheat.c
+++ b/
cheat.c
@@
-4,11
+4,8
@@
#include <stdbool.h>
#include <time.h>
#include "advent.h"
#include <stdbool.h>
#include <time.h>
#include "advent.h"
-#include "linenoise/linenoise.h"
#include "dungeon.h"
#include "dungeon.h"
-struct game_t game;
-
FILE *logfp = NULL, *rfp = NULL;
bool oldstyle = false;
bool editline = true;
FILE *logfp = NULL, *rfp = NULL;
bool oldstyle = false;
bool editline = true;
@@
-65,20
+62,10
@@
int main(int argc, char *argv[])
FILE *fp = NULL;
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);
/* Initialize game variables */
initialise();
make_zzword(game.zzword);
- game.newloc = LOC_START;
- game.loc = LOC_START;
- game.limit = GAMELIMIT;
// apply cheats
game.numdie = numdie;
// apply cheats
game.numdie = numdie;