Cut initialize in favor of implicit/default initialization where possible

This commit is contained in:
NHOrus 2017-07-01 14:21:07 +03:00 committed by Eric S. Raymond
parent 562569f33c
commit 7f2c118e56
3 changed files with 28 additions and 40 deletions

15
cheat.c
View file

@ -7,7 +7,20 @@
#include "linenoise/linenoise.h"
#include "dungeon.h"
struct game_t game;
struct game_t game = {
.chloc = LOC_DEADEND12,
.chloc2 = LOC_DEADEND13,
.dloc[1] = LOC_KINGHALL,
.dloc[2] = LOC_WESTBANK,
.dloc[3] = LOC_Y2,
.dloc[4] = LOC_ALIKE3,
.dloc[5] = LOC_COMPLEX,
.dloc[6] = LOC_DEADEND12,
.abbnum = 5,
.clock1 = WARNTIME,
.clock2 = FLASHTIME,
.blklin = true
};
FILE *logfp = NULL, *rfp = NULL;
bool oldstyle = false;