mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 15:12:19 +00:00
Fix compiles without RTLIGHT. Update config_wastes.h
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6235 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
34e9917d76
commit
bc8895c5fa
4 changed files with 49 additions and 31 deletions
|
@ -2999,8 +2999,9 @@ void Surf_DrawWorld (void)
|
||||||
{
|
{
|
||||||
r_dynamic.modified = false;
|
r_dynamic.modified = false;
|
||||||
r_temporalscenecache.modified = false;
|
r_temporalscenecache.modified = false;
|
||||||
|
#ifdef RTLIGHT
|
||||||
Sh_CheckSettings(); //fiddle with r_dynamic vs r_shadow_realtime_dlight.
|
Sh_CheckSettings(); //fiddle with r_dynamic vs r_shadow_realtime_dlight.
|
||||||
|
#endif
|
||||||
COM_WorkerPartialSync(webogenerating, &webogeneratingstate, true);
|
COM_WorkerPartialSync(webogenerating, &webogeneratingstate, true);
|
||||||
while (webostates)
|
while (webostates)
|
||||||
{
|
{
|
||||||
|
@ -3214,8 +3215,10 @@ void Surf_DrawWorld (void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef RTLIGHT
|
||||||
if (r_shadow_realtime_dlight.ival || currentmodel->type != mod_brush || !(currentmodel->fromgame == fg_quake || currentmodel->fromgame == fg_halflife) || !currentmodel->funcs.MarkLights)
|
if (r_shadow_realtime_dlight.ival || currentmodel->type != mod_brush || !(currentmodel->fromgame == fg_quake || currentmodel->fromgame == fg_halflife) || !currentmodel->funcs.MarkLights)
|
||||||
r_dynamic.ival = -1;
|
r_dynamic.ival = -1;
|
||||||
|
#endif
|
||||||
|
|
||||||
Surf_PushChains(currentmodel->batches);
|
Surf_PushChains(currentmodel->batches);
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,27 @@
|
||||||
/***
|
/***
|
||||||
*
|
*
|
||||||
* Copyright (c) 2000-2019, Vera Visions. All rights reserved.
|
* Copyright (c) 2000-2022, Vera Visions. All rights reserved.
|
||||||
*
|
*
|
||||||
****/
|
****/
|
||||||
|
|
||||||
/* branding defaults */
|
#ifndef DEMO
|
||||||
|
#define FULLENGINENAME "The Wastes"
|
||||||
|
#define GAME_SHORTNAME "TW"
|
||||||
|
#define GAME_BASEGAMES "platform","wastes"
|
||||||
|
#define GAME_PROTOCOL "The-Wastes"
|
||||||
|
#else
|
||||||
|
#define FULLENGINENAME "The Wastes Demo"
|
||||||
|
#define GAME_SHORTNAME "TWDemo"
|
||||||
|
#define GAME_BASEGAMES "platform","demotw"
|
||||||
|
#define GAME_PROTOCOL "TW-Demo"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define BRANDING_ICON "wastes.ico"
|
||||||
#define DISTRIBUTION "VTW"
|
#define DISTRIBUTION "VTW"
|
||||||
#define DISTRIBUTIONLONG "Vera Visions"
|
#define DISTRIBUTIONLONG "Vera Visions"
|
||||||
#define FULLENGINENAME "The Wastes"
|
|
||||||
#define ENGINEWEBSITE "https://www.vera-visions.com/"
|
|
||||||
#define BRANDING_ICON "wastes.ico"
|
|
||||||
|
|
||||||
/* FS rebranding */
|
|
||||||
#define GAME_SHORTNAME "TW"
|
|
||||||
#define GAME_FULLNAME FULLENGINENAME
|
#define GAME_FULLNAME FULLENGINENAME
|
||||||
#define GAME_BASEGAMES "platform","wastes"
|
|
||||||
#define GAME_PROTOCOL "The-Wastes"
|
|
||||||
#define GAME_DEFAULTPORT 23000
|
#define GAME_DEFAULTPORT 23000
|
||||||
|
#define ENGINEWEBSITE "https://www.vera-visions.com/"
|
||||||
|
|
||||||
#ifndef GLQUAKE
|
#ifndef GLQUAKE
|
||||||
#define GLQUAKE
|
#define GLQUAKE
|
||||||
|
@ -41,7 +46,6 @@
|
||||||
#define CSQC_DAT /* clientside qcvm */
|
#define CSQC_DAT /* clientside qcvm */
|
||||||
#define MENU_DAT /* persistent qcvm */
|
#define MENU_DAT /* persistent qcvm */
|
||||||
#define PSET_SCRIPT /* scripts defining particles */
|
#define PSET_SCRIPT /* scripts defining particles */
|
||||||
#define RTLIGHTS /* only way FTE does dlights on Q3BSP basically */
|
|
||||||
#define LOADERTHREAD /* multithreading related */
|
#define LOADERTHREAD /* multithreading related */
|
||||||
#define USEAREAGRID /* leave it on, improves performance */
|
#define USEAREAGRID /* leave it on, improves performance */
|
||||||
#define AVAIL_DINPUT /* input for Windows */
|
#define AVAIL_DINPUT /* input for Windows */
|
||||||
|
@ -49,6 +53,16 @@
|
||||||
#define AVAIL_STBI /* avoid libpng/libjpeg dependancies */
|
#define AVAIL_STBI /* avoid libpng/libjpeg dependancies */
|
||||||
#define ENGINE_ROUTING /* engine-side, fast routing */
|
#define ENGINE_ROUTING /* engine-side, fast routing */
|
||||||
|
|
||||||
|
#ifndef LEGACY_GPU
|
||||||
|
#define RTLIGHTS
|
||||||
|
#else
|
||||||
|
#undef RTLIGHTS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#undef D3D9QUAKE /* MICROS~1 trash */
|
||||||
|
#undef D3D11QUAKE /* MICROS~1 trash */
|
||||||
|
#undef D3D8QUAKE /* MICROS~1 trash */
|
||||||
|
|
||||||
/* uncompressed textures */
|
/* uncompressed textures */
|
||||||
#define IMAGEFMT_BMP /* sprays */
|
#define IMAGEFMT_BMP /* sprays */
|
||||||
#define IMAGEFMT_TGA
|
#define IMAGEFMT_TGA
|
||||||
|
@ -56,10 +70,8 @@
|
||||||
/* compressed textures */
|
/* compressed textures */
|
||||||
#define IMAGEFMT_KTX
|
#define IMAGEFMT_KTX
|
||||||
#define DECOMPRESS_ETC2
|
#define DECOMPRESS_ETC2
|
||||||
#define DECOMPRESS_S3TC
|
|
||||||
#define DECOMPRESS_RGTC
|
#define DECOMPRESS_RGTC
|
||||||
#define DECOMPRESS_BPTC
|
#define DECOMPRESS_S3TC
|
||||||
#define DECOMPRESS_ASTC
|
|
||||||
|
|
||||||
/* To be able to comm with Frag-Net.com */
|
/* To be able to comm with Frag-Net.com */
|
||||||
#define HAVE_PACKET
|
#define HAVE_PACKET
|
||||||
|
@ -89,25 +101,23 @@
|
||||||
#define TERRAIN
|
#define TERRAIN
|
||||||
|
|
||||||
/* audio */
|
/* audio */
|
||||||
#define USEEFX
|
#define AVAIL_OPENAL
|
||||||
#undef AVAIL_OPENAL
|
|
||||||
#define MIXER_F32
|
|
||||||
#define HAVE_MIXER
|
|
||||||
#define AVAIL_OGGVORBIS
|
#define AVAIL_OGGVORBIS
|
||||||
#define HAVE_OPUS
|
#define HAVE_OPUS
|
||||||
#define VOICECHAT
|
#define VOICECHAT
|
||||||
#define AVAIL_DSOUND
|
|
||||||
#undef AVAIL_XAUDIO2
|
|
||||||
#define AVAIL_WASAPI
|
|
||||||
|
|
||||||
/* Model formats, IQM/VVM and HLMDL for legacy maps */
|
/* Model formats, IQM/VVM and HLMDL for legacy maps */
|
||||||
#define INTERQUAKEMODELS
|
#define INTERQUAKEMODELS
|
||||||
#define HALFLIFEMODELS
|
#define HALFLIFEMODELS
|
||||||
|
|
||||||
|
/* physics */
|
||||||
|
#undef USE_INTERNAL_ODE
|
||||||
|
#undef USE_INTERNAL_BULLET
|
||||||
|
#undef USERBE
|
||||||
|
#undef RAGDOLL
|
||||||
|
|
||||||
/* we don't need any of these */
|
/* we don't need any of these */
|
||||||
#undef IMAGEFMT_PCX
|
#undef IMAGEFMT_PCX
|
||||||
#undef USE_INTERNAL_BULLET
|
|
||||||
#undef USE_INTERNAL_ODE
|
|
||||||
#undef PACKAGE_DOOMWAD
|
#undef PACKAGE_DOOMWAD
|
||||||
#undef DOOMWADS
|
#undef DOOMWADS
|
||||||
#undef MAP_PROC
|
#undef MAP_PROC
|
||||||
|
@ -126,9 +136,8 @@
|
||||||
#undef PSKMODELS
|
#undef PSKMODELS
|
||||||
#undef MENU_NATIVECODE /* native menu replacing menuQC */
|
#undef MENU_NATIVECODE /* native menu replacing menuQC */
|
||||||
#undef MVD_RECORDING /* server can record MVDs. */
|
#undef MVD_RECORDING /* server can record MVDs. */
|
||||||
#undef D3D9QUAKE /* MICROS~1 trash */
|
#undef AVAIL_WASAPI /* windows advanced sound api */
|
||||||
#undef D3D11QUAKE /* MICROS~1 trash */
|
#undef AVAIL_DSOUND /* MICROS~1 trash */
|
||||||
#undef D3D8QUAKE /* MICROS~1 trash */
|
|
||||||
#undef BOTLIB_STATIC /* q3 botlib */
|
#undef BOTLIB_STATIC /* q3 botlib */
|
||||||
#undef AVAIL_XZDEC /* .xz decompression */
|
#undef AVAIL_XZDEC /* .xz decompression */
|
||||||
#undef HAVE_SPEEX /* .xz decompression */
|
#undef HAVE_SPEEX /* .xz decompression */
|
||||||
|
@ -146,8 +155,6 @@
|
||||||
#undef QUAKEHUD /* support for drawing the vanilla hud */
|
#undef QUAKEHUD /* support for drawing the vanilla hud */
|
||||||
#undef QWSKINS /* disabling this means no qw .pcx skins nor enemy/team skin/colour forcing */
|
#undef QWSKINS /* disabling this means no qw .pcx skins nor enemy/team skin/colour forcing */
|
||||||
#undef SVRANKING /* legacy server-side ranking system */
|
#undef SVRANKING /* legacy server-side ranking system */
|
||||||
#undef USERBE /* required for physics */
|
|
||||||
#undef RAGDOLL /* ragdoll support. requires RBE support */
|
|
||||||
#define HUFFNETWORK /* crappy network compression. probably needs reseeding */
|
#define HUFFNETWORK /* crappy network compression. probably needs reseeding */
|
||||||
#undef SVCHAT /* ancient lame builtin to support NPC-style chat.. */
|
#undef SVCHAT /* ancient lame builtin to support NPC-style chat.. */
|
||||||
#undef VM_Q1 /* q1qvm implementation, to support ktx */
|
#undef VM_Q1 /* q1qvm implementation, to support ktx */
|
||||||
|
@ -169,12 +176,13 @@
|
||||||
#undef SIDEVIEWS
|
#undef SIDEVIEWS
|
||||||
#undef MAX_SPLITS
|
#undef MAX_SPLITS
|
||||||
#undef SUBSERVERS /* multi-map */
|
#undef SUBSERVERS /* multi-map */
|
||||||
|
#undef HAVE_MIXER /* OpenAL only */
|
||||||
#undef VM_LUA /* lua game-logic */
|
#undef VM_LUA /* lua game-logic */
|
||||||
#undef HLCLIENT /* regressed, unfinished*/
|
#undef HLCLIENT /* regressed, unfinished*/
|
||||||
#undef HLSERVER /* regressed, unfinished */
|
#undef HLSERVER /* regressed, unfinished */
|
||||||
#undef FTPSERVER
|
#undef FTPSERVER
|
||||||
#undef HAVE_JUKEBO /* includes built-in jukebox */
|
#undef HAVE_JUKEBO /* includes built-in jukebox */
|
||||||
#undef HAVE_MEDIA_DECODER /* can play cin/roq, more with plugins */
|
#define HAVE_MEDIA_DECODER /* can play cin/roq, more with plugins */
|
||||||
#undef HAVE_MEDIA_ENCODER /* capture/capturedemo work */
|
#undef HAVE_MEDIA_ENCODER /* capture/capturedemo work */
|
||||||
#undef HAVE_SPEECHTOTEXT /* Windows speech-to-text thing */
|
#undef HAVE_SPEECHTOTEXT /* Windows speech-to-text thing */
|
||||||
#undef SAVEDGAMES
|
#undef SAVEDGAMES
|
||||||
|
@ -226,6 +234,10 @@
|
||||||
-DLINK_INTERNAL_BULLET
|
-DLINK_INTERNAL_BULLET
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_INTERNAL_ODE
|
||||||
|
-DODE_STATIC
|
||||||
|
#endif
|
||||||
|
|
||||||
/* disable static speex */
|
/* disable static speex */
|
||||||
#ifdef HAVE_SPEEX
|
#ifdef HAVE_SPEEX
|
||||||
-DNO_SPEEX
|
-DNO_SPEEX
|
||||||
|
|
|
@ -560,11 +560,12 @@ static void Q3BSP_ClipDecalToNodes (fragmentdecal_t *dec, mnode_t *node)
|
||||||
{
|
{
|
||||||
surf = *msurf;
|
surf = *msurf;
|
||||||
|
|
||||||
|
#ifdef RTLIGHTS
|
||||||
//only check each surface once. it can appear in multiple leafs.
|
//only check each surface once. it can appear in multiple leafs.
|
||||||
if (surf->shadowframe == sh_shadowframe)
|
if (surf->shadowframe == sh_shadowframe)
|
||||||
continue;
|
continue;
|
||||||
surf->shadowframe = sh_shadowframe;
|
surf->shadowframe = sh_shadowframe;
|
||||||
|
#endif
|
||||||
Fragment_Mesh(dec, surf->mesh, surf->texinfo);
|
Fragment_Mesh(dec, surf->mesh, surf->texinfo);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1062,7 +1062,9 @@ void Sh_PreGenerateLights(void);
|
||||||
//Draws lights, called from the backend
|
//Draws lights, called from the backend
|
||||||
void Sh_DrawLights(qbyte *vis);
|
void Sh_DrawLights(qbyte *vis);
|
||||||
void Sh_GenerateFakeShadows(void);
|
void Sh_GenerateFakeShadows(void);
|
||||||
|
#ifdef RTLIGHTS
|
||||||
void Sh_CheckSettings(void);
|
void Sh_CheckSettings(void);
|
||||||
|
#endif
|
||||||
void SH_FreeShadowMesh(struct shadowmesh_s *sm);
|
void SH_FreeShadowMesh(struct shadowmesh_s *sm);
|
||||||
//frees all memory
|
//frees all memory
|
||||||
void Sh_Shutdown(void);
|
void Sh_Shutdown(void);
|
||||||
|
|
Loading…
Reference in a new issue