git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4950 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8cfbc1ad26
commit
2b77e1ad3b
3 changed files with 4 additions and 4 deletions
|
@ -1306,7 +1306,7 @@ void SV_Loadgame_f (void)
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef MENU_DAT
|
||||
#if defined(MENU_DAT) && !defined(SERVERONLY)
|
||||
MP_Toggle(0);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -610,7 +610,7 @@ void SV_Map_f (void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef MENU_DAT
|
||||
#if defined(MENU_DAT) && !defined(SERVERONLY)
|
||||
MP_Toggle(0);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -6333,14 +6333,14 @@ void SV_RunCmd (usercmd_t *ucmd, qboolean recurse)
|
|||
{
|
||||
vec3_t diffuse, ambient, dir;
|
||||
float lev = 0;
|
||||
#ifdef RTLIGHTS
|
||||
#if defined(RTLIGHTS) && !defined(SERVERONLY)
|
||||
Sh_CalcPointLight(sv_player->v->origin, ambient);
|
||||
lev += VectorLength(ambient);
|
||||
|
||||
if (!r_shadow_realtime_world.ival || r_shadow_realtime_world_lightmaps.value)
|
||||
#endif
|
||||
{
|
||||
cl.worldmodel->funcs.LightPointValues(cl.worldmodel, sv_player->v->origin, ambient, diffuse, dir);
|
||||
sv.world.worldmodel->funcs.LightPointValues(sv.world.worldmodel, sv_player->v->origin, ambient, diffuse, dir);
|
||||
lev += (VectorLength(ambient) + VectorLength(diffuse)/2.0)/256;
|
||||
}
|
||||
sv_player->xv->light_level = lev * 255;
|
||||
|
|
Loading…
Reference in a new issue