(main): Initialize game_turn to one instead of zero.
This commit is contained in:
parent
c329f882a2
commit
0eeed1c920
1 changed files with 5 additions and 2 deletions
|
@ -83,7 +83,7 @@ main(int argc, char *argv[])
|
||||||
char buf[255];
|
char buf[255];
|
||||||
char *filename;
|
char *filename;
|
||||||
int x, y;
|
int x, y;
|
||||||
struct gamestr *game;
|
struct gamestr game;
|
||||||
struct natstr nat;
|
struct natstr nat;
|
||||||
struct realmstr realm;
|
struct realmstr realm;
|
||||||
struct sctstr sct;
|
struct sctstr sct;
|
||||||
|
@ -145,7 +145,10 @@ main(int argc, char *argv[])
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ef_extend(EF_GAME, 1);
|
memset(&game, 0, sizeof(game));
|
||||||
|
game.ef_type = EF_GAME;
|
||||||
|
game.game_turn = 1;
|
||||||
|
ef_write(EF_GAME, 0, &game);
|
||||||
memset(&nat, 0, sizeof(nat));
|
memset(&nat, 0, sizeof(nat));
|
||||||
nat.ef_type = EF_NATION;
|
nat.ef_type = EF_NATION;
|
||||||
strcpy(nat.nat_cnam, "POGO");
|
strcpy(nat.nat_cnam, "POGO");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue