mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-01-22 07:51:20 +00:00
This should stomp the last of the invisible entity bugs.
This commit is contained in:
parent
50fec20142
commit
fff8ccb2c3
3 changed files with 24 additions and 14 deletions
|
@ -291,6 +291,12 @@ void FlushEntityPacket (void)
|
|||
Con_DPrintf ("FlushEntityPacket\n");
|
||||
|
||||
memset (&olde, 0, sizeof(olde));
|
||||
// LordHavoc: more state setup...
|
||||
olde.alpha = 255;
|
||||
olde.scale = 16;
|
||||
olde.glowsize = 0;
|
||||
olde.glowcolor = 254;
|
||||
olde.colormod = 255;
|
||||
|
||||
cl.validsequence = 0; // can't render a frame
|
||||
cl.frames[cls.netchan.incoming_sequence&UPDATE_MASK].invalid = true;
|
||||
|
@ -535,6 +541,7 @@ void CL_LinkPacketEntities (void)
|
|||
ent->glowsize = s1->glowsize < 128 ? s1->glowsize * 8.0 : (s1->glowsize - 256) * 8.0;
|
||||
ent->glowcolor = s1->glowcolor;
|
||||
ent->alpha = s1->alpha / 255.0;
|
||||
ent->scale = s1->scale / 16.0;
|
||||
|
||||
if (s1->colormod == 255)
|
||||
ent->colormod[0] = ent->colormod[1] = ent->colormod[2] = 1;
|
||||
|
@ -721,6 +728,7 @@ void CL_LinkProjectiles (void)
|
|||
ent->glowsize = 0;
|
||||
ent->glowcolor = 254;
|
||||
ent->alpha = 1;
|
||||
ent->scale = 1;
|
||||
ent->colormod[0] = ent->colormod[1] = ent->colormod[2] = 1;
|
||||
}
|
||||
}
|
||||
|
@ -948,6 +956,7 @@ void CL_LinkPlayers (void)
|
|||
ent->glowsize = 0;
|
||||
ent->glowcolor = 254;
|
||||
ent->alpha = 1;
|
||||
ent->scale = 1;
|
||||
ent->colormod[0] = ent->colormod[1] = ent->colormod[2] = 1;
|
||||
|
||||
//
|
||||
|
|
|
@ -798,7 +798,7 @@ void CL_ParseStatic (void)
|
|||
|
||||
// LordHavoc: make static entities visible
|
||||
ent->alpha = 1;
|
||||
ent->scale = 16;
|
||||
ent->scale = 1;
|
||||
ent->glowsize = 0;
|
||||
ent->glowcolor = 254;
|
||||
ent->colormod[0] = ent->colormod[1] = ent->colormod[2] = 1;
|
||||
|
|
|
@ -362,6 +362,7 @@ entity_t *CL_NewTempEntity (void)
|
|||
ent->glowsize = 0;
|
||||
ent->glowcolor = 254;
|
||||
ent->alpha = 1;
|
||||
ent->scale = 1;
|
||||
ent->colormod[0] = ent->colormod[1] = ent->colormod[2] = 1;
|
||||
return ent;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue