X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=main.c;h=17a5e4371ebdf6a66315b23991d9953669999342;hp=caa328d28e49767757e046f916293aec792ab126;hb=24d102781c2ec6fef8246b53250dc7590e71fff7;hpb=5c30d6429f4f5e3d187d52b6ac623d61968738a4 diff --git a/main.c b/main.c index caa328d..17a5e43 100644 --- a/main.c +++ b/main.c @@ -968,7 +968,7 @@ static void listobjects(void) static bool do_command() /* Get and execute a command */ { - static struct command_t command; + static command_t command; /* Can't leave cave once it's closing (except by main office). */ if (OUTSID(game.newloc) && game.newloc != 0 && game.closng) { @@ -1051,8 +1051,8 @@ Lclearobj: game.knfloc = 0; /* Preserve state from last command for reuse when required */ - struct command_t preserve; - memcpy(&preserve, &command, sizeof(struct command_t)); + command_t preserve; + memcpy(&preserve, &command, sizeof(command_t)); // Get command input from user if (!get_command_input(&command))