fixed bug at21983

This commit is contained in:
Borja Ferrer
2005-11-26 20:38:58 +00:00
parent e9db0c8c76
commit 8112fbe161
5 changed files with 30 additions and 24 deletions

View File

@ -109,13 +109,6 @@ void KeyValue(edict_t *pEntity, KeyValueData *pkvd)
void StartFrame()
{
if (glinfo.bCheckLights) {
if (!FStrEq((const char*)glinfo.szLastLights, "")) {
(g_engfuncs.pfnLightStyle)(0, (char *)glinfo.szLastLights);
glinfo.fNextLights = gpGlobals->time + 1;
}
}
if (StartFrameForward != -1)
MF_ExecuteForward(StartFrameForward);
else if (VexdServerForward != -1)
@ -124,6 +117,20 @@ void StartFrame()
RETURN_META(MRES_IGNORED);
}
void StartFrame_Post()
{
if (glinfo.bCheckLights)
{
if (glinfo.fNextLights < gpGlobals->time)
{
(g_engfuncs.pfnLightStyle)(0, (char *)glinfo.szLastLights);
glinfo.fNextLights = gpGlobals->time + 1;
}
}
RETURN_META(MRES_IGNORED);
}
void CmdStart(const edict_t *player, const struct usercmd_s *_cmd, unsigned int random_seed)
{
unsigned int i = 0;