X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=cheat.c;h=008fb9c4def8978ec3e88e1a680d86a53c211bd9;hp=96ef4c30178fcfbe180b491eac29276bfc5ed1d2;hb=09cd426443517901dfc45de2fbe939d935c94158;hpb=609159ad6d62af90cdbf97cbb09fffabde87a026 diff --git a/cheat.c b/cheat.c index 96ef4c3..008fb9c 100644 --- a/cheat.c +++ b/cheat.c @@ -3,6 +3,10 @@ * not happen. It leverages chunks of advent, mostly initialize() and * savefile(), so we know we're always outputing save files that advent * can import. + * + * Copyright (c) 1977, 2005 by Will Crowther and Don Woods + * Copyright (c) 2017 by Eric S. Raymond + * SPDX-License-Identifier: BSD-2-clause */ #include #include @@ -38,7 +42,7 @@ int main(int argc, char *argv[]) while ((ch = getopt(argc, argv, opts)) != EOF) { switch (ch) { case 'd': - game.numdie = (long)atoi(optarg); + game.numdie = (turn_t)atoi(optarg); printf("cheat: game.numdie = %ld\n", game.numdie); break; case 'l':