From 5e3f9598bd3939bf1ed332a61a08d4034caca297 Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Tue, 28 Jun 2005 00:05:57 +0000 Subject: [PATCH] patch to make frikqcc work from http://www.nexuiz.com/forums/index.php?showtopic=731 git-svn-id: svn://svn.icculus.org/nexuiz/trunk@471 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- qcsrc/Makefile | 3 ++- qcsrc/gamec/g_world.c | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qcsrc/Makefile b/qcsrc/Makefile index 85c20282a..25c71afe4 100644 --- a/qcsrc/Makefile +++ b/qcsrc/Makefile @@ -1,4 +1,5 @@ -../../data/progs.dat: *.nc *.qc bot/*.qc bot/maps/*.qc Makefile progs.src +.PHONY: ../../data/progs.dat +../../data/progs.dat: frikqcc /O2 -warn 2 || true clean: diff --git a/qcsrc/gamec/g_world.c b/qcsrc/gamec/g_world.c index 300fdd2cf..db6ce5797 100644 --- a/qcsrc/gamec/g_world.c +++ b/qcsrc/gamec/g_world.c @@ -217,7 +217,6 @@ void light (void) // reads and alters data/maplist.cfg (sliding it one line), and returns a // strzoned string containing the next map -#define MAPLIST "maplist.cfg" string() Nex_RotateMapList = { local float lHandle; @@ -225,7 +224,7 @@ string() Nex_RotateMapList = local string lCurrentMap; local string lBuffer; - lHandle = fopen( MAPLIST, FILE_READ ); + lHandle = fopen( "maplist.cfg", FILE_READ ); if( lHandle < 0 ) { fclose( lHandle ); // restart the current map if no other map is not found @@ -278,11 +277,11 @@ string() Nex_RotateMapList = fclose( lHandle ); // open the maplist for output this one - lHandle = fopen( MAPLIST, FILE_WRITE ); + lHandle = fopen( "maplist.cfg", FILE_WRITE ); if( lHandle < 0 ) { // this shouldnt happen! // print a warning/error message - dprint( "Couldn't open ", MAPLIST, " for output!\n" ); + dprint( "Couldn't open ", "maplist.cfg", " for output!\n" ); strunzone( lNextMap ); -- 2.39.2