Skip to content

Commit

Permalink
Smokin'Guns customization, may help on few maps
Browse files Browse the repository at this point in the history
  • Loading branch information
gbougard committed Jan 23, 2013
1 parent 3d53aab commit c1353f3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CC=gcc
CFLAGS=\
-DSMOKINGUNS \
-DMAC_STATIC= -DQDECL= -DLINUX -DBSPC -D_FORTIFY_SOURCE=2 \
-I. -Ideps -Wall

Expand Down
3 changes: 3 additions & 0 deletions bspc.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,9 @@ int main (int argc, char **argv)

Log_Open("bspc.log"); //open a log file
Log_Print("BSPC version "BSPC_VERSION", %s %s\n", __DATE__, __TIME__);
#ifdef SMOKINGUNS
Log_Print("%s\n", SMOKINGUNS_MESSAGE);
#endif

DefaultCfg();
for (i = 1; i < argc; i++)
Expand Down
3 changes: 3 additions & 0 deletions map.c
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,9 @@ qboolean WriteMapFileSafe(FILE *fp)
if (fprintf(fp,"//=====================================================\n"
"//\n"
"// map file created with BSPC "BSPC_VERSION"\n"
#ifdef SMOKINGUNS
"// "SMOKINGUNS_MESSAGE"\n"
#endif
"//\n"
"// BSPC is designed to decompile material in which you own the copyright\n"
"// or have obtained permission to decompile from the copyright owner. Unless\n"
Expand Down
9 changes: 9 additions & 0 deletions qbsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

#define BSPC_VERSION "2.1h"

#ifdef SMOKINGUNS
#define SMOKINGUNS_MESSAGE "Customized for Smokin'Guns v0.2"
#endif

// vsnprintf is ISO/IEC 9899:1999
// abstracting this to make it portable
#ifdef _WIN32
Expand Down Expand Up @@ -248,8 +252,13 @@ extern char source[1024];
// map.c
//=============================================================================

#ifdef SMOKINGUNS
#define MAX_MAPFILE_PLANES 512000
#define MAX_MAPFILE_BRUSHES (65535*2)
#else
#define MAX_MAPFILE_PLANES 256000
#define MAX_MAPFILE_BRUSHES 65535
#endif
#define MAX_MAPFILE_BRUSHSIDES (MAX_MAPFILE_BRUSHES*8)
#define MAX_MAPFILE_TEXINFO 8192

Expand Down

0 comments on commit c1353f3

Please sign in to comment.