1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/games/joequake/files/patch-console.c
Alejandro Pulver 624ff38926 - Fix building in non i386 architectures (change in Makefile.linux).
- Use Q1DIR directly, instead of assigning it to DATADIR.

Approved by:	garga (mentor, implicitly)
2006-05-20 13:29:07 +00:00

16 lines
496 B
C

--- ./console.c.orig Sun Jan 8 18:27:46 2006
+++ ./console.c Sat May 20 10:00:24 2006
@@ -205,8 +205,11 @@
*/
void Con_Init (void)
{
+ char qclog_path[MAX_OSPATH];
+
+ snprintf(qclog_path, sizeof(qclog_path), "%s/qconsole.log", com_gamedir);
if (COM_CheckParm("-condebug"))
- qconsole_log = fopen (va("%s/joequake/qconsole.log", com_basedir), "a");
+ qconsole_log = fopen (qclog_path, "a");
con_text = Hunk_AllocName (CON_TEXTSIZE, "context");
memset (con_text, ' ', CON_TEXTSIZE);