CBaseEntity: Fix error for when games are not compiled with GS_RENDERFX

This commit is contained in:
Marco Cawthorne 2021-08-03 07:15:25 +02:00
parent 0709688f9f
commit 9fb574d920
7 changed files with 13 additions and 5 deletions

View File

@ -1,5 +1,4 @@
CC=fteqcc
all:
mkdir -p ../../data.pk3dir
$(CC) progs.src

View File

@ -1,5 +1,4 @@
CC=fteqcc
all:
mkdir -p ../../data.pk3dir
$(CC) progs.src

View File

@ -0,0 +1,3 @@
name "16"
font "gfx/shell/arial.ttf"
size "16"

View File

@ -0,0 +1,3 @@
name "cr"
font "gfx/shell/arial.ttf"
size "20"

View File

@ -0,0 +1,3 @@
name "font"
font "gfx/shell/arial.ttf"
size "12"

View File

@ -145,10 +145,14 @@ CBaseEntity::RenderFXPass(void)
void
CBaseEntity::MakeStatic(void)
{
/* give renderFX the opportunity to write into renderable
* fields at least once before forever pulling it out the cgame */
#ifdef GS_RENDERFX
if (m_iRenderMode > RM_FULLBRIGHT)
return;
RenderFXPass();
#endif
/* static ents = no collision, so let's make a copy for visibility */
makestatic(copyentity(this));

View File

@ -101,9 +101,6 @@ m_init(void)
cvar_set("maxpitch", "89");
cvar_set("minpitch", "-89");
cvar_set("r_meshpitch", "1");
cvar_set("v_bob", "0.01");
cvar_set("v_bobcycle", "0.8");
cvar_set("v_bobup", "0.5");
cvar_set("v_contentblend", "0");
cvar_set("gl_mindist", "4");
cvar_set("con_textsize", "12");