X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=cheat.c;fp=cheat.c;h=0eee14bfb2d44b29be7d0d3aad4639cbe538cf2a;hp=008fb9c4def8978ec3e88e1a680d86a53c211bd9;hb=81af59974bcc0c619437cb83064d7c18e27614ec;hpb=b8c9cf90d851d14340f8588898e37cb200ab9c7a diff --git a/cheat.c b/cheat.c index 008fb9c..0eee14b 100644 --- a/cheat.c +++ b/cheat.c @@ -43,19 +43,19 @@ int main(int argc, char *argv[]) switch (ch) { case 'd': game.numdie = (turn_t)atoi(optarg); - printf("cheat: game.numdie = %ld\n", game.numdie); + printf("cheat: game.numdie = %d\n", game.numdie); break; case 'l': game.limit = (turn_t)atoi(optarg); - printf("cheat: game.limit = %ld\n", game.limit); + printf("cheat: game.limit = %d\n", game.limit); break; case 's': - game.saved = (long)atoi(optarg); - printf("cheat: game.saved = %ld\n", game.saved); + game.saved = (int)atoi(optarg); + printf("cheat: game.saved = %d\n", game.saved); break; case 't': game.turns = (turn_t)atoi(optarg); - printf("cheat: game.turns = %ld\n", game.turns); + printf("cheat: game.turns = %d\n", game.turns); break; case 'v': version = atoi(optarg);