Update the qcommon/ dir to 3.21 -- oops.

This commit is contained in:
Jeff Teunissen 2001-12-28 21:40:13 +00:00
parent f134ecf962
commit 377a168dea
4 changed files with 28 additions and 3 deletions

View file

@ -131,7 +131,10 @@ void Com_Printf (char *fmt, ...)
if (!logfile)
{
Com_sprintf (name, sizeof(name), "%s/qconsole.log", FS_Gamedir ());
logfile = fopen (name, "w");
if (logfile_active->value > 2)
logfile = fopen (name, "a");
else
logfile = fopen (name, "w");
}
if (logfile)
fprintf (logfile, "%s", msg);

View file

@ -1,3 +1,22 @@
/*
Copyright (C) 1997-2001 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* crc.h */
void CRC_Init(unsigned short *crcvalue);

View file

@ -554,7 +554,10 @@ Called to find where to write a file (demos, savegames, etc)
*/
char *FS_Gamedir (void)
{
return fs_gamedir;
if (*fs_gamedir)
return fs_gamedir;
else
return BASEDIRNAME;
}
/*

View file

@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "../game/q_shared.h"
#define VERSION 3.19
#define VERSION 3.21
#define BASEDIRNAME "baseq2"