From c19bd8cbe700d76bfd8c70c9f611efe9038a28c4 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Sat, 19 Feb 2022 21:29:08 +0100 Subject: [PATCH] further simplification --- Source/g_game.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/g_game.c b/Source/g_game.c index f7ab9cb2..9f29fbfa 100644 --- a/Source/g_game.c +++ b/Source/g_game.c @@ -1235,7 +1235,7 @@ static void G_DoWorldDone(void) static char *defdemoname; -#define INVALID_DEMO(a,b) do{fprintf(stderr,a,b);gameaction=ga_nothing;demoplayback=true;G_CheckDemoStatus();return;}while(0) +#define INVALID_DEMO(a,b) do{fprintf(stderr,"G_DoPlayDemo: "a,b);gameaction=ga_nothing;demoplayback=true;G_CheckDemoStatus();return;}while(0) static void G_DoPlayDemo(void) { @@ -1255,7 +1255,7 @@ static void G_DoPlayDemo(void) // [FG] ignore too short demo lumps if (W_LumpLength(W_GetNumForName(basename)) < 0xd) { - INVALID_DEMO("G_DoPlayDemo: Short demo lump %s.\n", basename); + INVALID_DEMO("Short demo lump %s.\n", basename); } demover = *demo_p++; @@ -1267,7 +1267,7 @@ static void G_DoPlayDemo(void) // Eternity Engine also uses 255 demover, with other signatures. if (strncmp((const char *)demo_p, "PR+UM", 5) != 0) { - INVALID_DEMO("G_DoPlayDemo: Extended demo format %d found, but \"PR+UM\" string not found.\n", demover); + INVALID_DEMO("Extended demo format %d found, but \"PR+UM\" string not found.\n", demover); } demo_p += 6; @@ -1311,7 +1311,7 @@ static void G_DoPlayDemo(void) // [FG] PrBoom's own demo format starts with demo version 210 if (demover >= 210 && !mbf21) { - INVALID_DEMO("G_DoPlayDemo: Unknown demo format %d.\n", demover); + INVALID_DEMO("Unknown demo format %d.\n", demover); } longtics = false;