shithub: qk1

Download patch

ref: 8bdd3d9e4aa13a417a04cecf1556371702789168
parent: 3ba533fb9d5e013768813983fc0a4464f4ba13ac
author: qwx <qwx@sciops.net>
date: Sat Jul 10 08:02:50 EDT 2021

host_cmd: fix missed %r usage (thanks kvik)

--- a/host_cmd.c
+++ b/host_cmd.c
@@ -867,7 +867,7 @@
 	Con_Printf("Writing game to %s\n", s);
 	savecomment(cm);
 	if(dumpsav(s, cm) < 0)
-		Con_Printf("savegame: %r\n");
+		Con_Printf(va("savegame: %r\n"));
 }
 
 static void
@@ -889,7 +889,7 @@
 	//SCR_BeginLoadingPlaque();
 	dprint("loadgame: reading from %s", s);
 	if(loadsav(s) < 0){
-		Con_Printf("loadgame: %r\n");
+		Con_Printf(va("loadgame: %r\n"));
 		return;
 	}
 	if(cls.state != ca_dedicated){