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,6 +131,9 @@ void Com_Printf (char *fmt, ...)
if (!logfile) if (!logfile)
{ {
Com_sprintf (name, sizeof(name), "%s/qconsole.log", FS_Gamedir ()); Com_sprintf (name, sizeof(name), "%s/qconsole.log", FS_Gamedir ());
if (logfile_active->value > 2)
logfile = fopen (name, "a");
else
logfile = fopen (name, "w"); logfile = fopen (name, "w");
} }
if (logfile) if (logfile)

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 */ /* crc.h */
void CRC_Init(unsigned short *crcvalue); 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) char *FS_Gamedir (void)
{ {
if (*fs_gamedir)
return 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" #include "../game/q_shared.h"
#define VERSION 3.19 #define VERSION 3.21
#define BASEDIRNAME "baseq2" #define BASEDIRNAME "baseq2"