else
sound_num = MSG_ReadByte ();
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
if (sound_num >= MAX_SOUNDS)
{
// hack for unmarked Nehahra movie demos which had a custom protocol
if (protocol == PROTOCOL_QUAKEDP && cls.demoplayback && demo_nehahra.integer)
protocol = PROTOCOL_NEHAHRAMOVIE;
- cl.protocol = protocol;
- Con_DPrintf("Server protocol is %s\n", Protocol_NameForEnum(cl.protocol));
+ cls.protocol = protocol;
+ Con_DPrintf("Server protocol is %s\n", Protocol_NameForEnum(cls.protocol));
// parse maxclients
cl.maxclients = MSG_ReadByte ();
strlcpy (cl.levelname, str, sizeof(cl.levelname));
// seperate the printfs so the server message can have a color
- if (cl.protocol != PROTOCOL_NEHAHRAMOVIE) // no messages when playing the Nehahra movie
+ if (cls.protocol != PROTOCOL_NEHAHRAMOVIE) // no messages when playing the Nehahra movie
Con_Printf("\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\37\n\n\2%s\n", str);
// check memory integrity
ent->state_baseline.skin = MSG_ReadByte();
for (i = 0;i < 3;i++)
{
- ent->state_baseline.origin[i] = MSG_ReadCoord(cl.protocol);
- ent->state_baseline.angles[i] = MSG_ReadAngle(cl.protocol);
+ ent->state_baseline.origin[i] = MSG_ReadCoord(cls.protocol);
+ ent->state_baseline.angles[i] = MSG_ReadAngle(cls.protocol);
}
CL_ValidateState(&ent->state_baseline);
ent->state_previous = ent->state_current = ent->state_baseline;
VectorCopy (cl.mvelocity[0], cl.mvelocity[1]);
cl.mviewzoom[1] = cl.mviewzoom[0];
- if (cl.protocol == PROTOCOL_QUAKE || cl.protocol == PROTOCOL_QUAKEDP || cl.protocol == PROTOCOL_NEHAHRAMOVIE || cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3 || cl.protocol == PROTOCOL_DARKPLACES4 || cl.protocol == PROTOCOL_DARKPLACES5)
+ if (cls.protocol == PROTOCOL_QUAKE || cls.protocol == PROTOCOL_QUAKEDP || cls.protocol == PROTOCOL_NEHAHRAMOVIE || cls.protocol == PROTOCOL_DARKPLACES1 || cls.protocol == PROTOCOL_DARKPLACES2 || cls.protocol == PROTOCOL_DARKPLACES3 || cls.protocol == PROTOCOL_DARKPLACES4 || cls.protocol == PROTOCOL_DARKPLACES5)
{
cl.stats[STAT_VIEWHEIGHT] = DEFAULT_VIEWHEIGHT;
cl.stats[STAT_ITEMS] = 0;
{
if (bits & (SU_PUNCH1<<i) )
{
- if (cl.protocol == PROTOCOL_QUAKE || cl.protocol == PROTOCOL_QUAKEDP || cl.protocol == PROTOCOL_NEHAHRAMOVIE)
+ if (cls.protocol == PROTOCOL_QUAKE || cls.protocol == PROTOCOL_QUAKEDP || cls.protocol == PROTOCOL_NEHAHRAMOVIE)
cl.mpunchangle[0][i] = MSG_ReadChar();
else
cl.mpunchangle[0][i] = MSG_ReadAngle16i();
}
if (bits & (SU_PUNCHVEC1<<i))
{
- if (cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3 || cl.protocol == PROTOCOL_DARKPLACES4)
+ if (cls.protocol == PROTOCOL_DARKPLACES1 || cls.protocol == PROTOCOL_DARKPLACES2 || cls.protocol == PROTOCOL_DARKPLACES3 || cls.protocol == PROTOCOL_DARKPLACES4)
cl.mpunchvector[0][i] = MSG_ReadCoord16i();
else
cl.mpunchvector[0][i] = MSG_ReadCoord32f();
}
if (bits & (SU_VELOCITY1<<i) )
{
- if (cl.protocol == PROTOCOL_QUAKE || cl.protocol == PROTOCOL_QUAKEDP || cl.protocol == PROTOCOL_NEHAHRAMOVIE || cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3 || cl.protocol == PROTOCOL_DARKPLACES4)
+ if (cls.protocol == PROTOCOL_QUAKE || cls.protocol == PROTOCOL_QUAKEDP || cls.protocol == PROTOCOL_NEHAHRAMOVIE || cls.protocol == PROTOCOL_DARKPLACES1 || cls.protocol == PROTOCOL_DARKPLACES2 || cls.protocol == PROTOCOL_DARKPLACES3 || cls.protocol == PROTOCOL_DARKPLACES4)
cl.mvelocity[0][i] = MSG_ReadChar()*16;
else
cl.mvelocity[0][i] = MSG_ReadCoord32f();
}
// LordHavoc: hipnotic demos don't have this bit set but should
- if (bits & SU_ITEMS || cl.protocol == PROTOCOL_QUAKE || cl.protocol == PROTOCOL_QUAKEDP || cl.protocol == PROTOCOL_NEHAHRAMOVIE || cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3 || cl.protocol == PROTOCOL_DARKPLACES4 || cl.protocol == PROTOCOL_DARKPLACES5)
+ if (bits & SU_ITEMS || cls.protocol == PROTOCOL_QUAKE || cls.protocol == PROTOCOL_QUAKEDP || cls.protocol == PROTOCOL_NEHAHRAMOVIE || cls.protocol == PROTOCOL_DARKPLACES1 || cls.protocol == PROTOCOL_DARKPLACES2 || cls.protocol == PROTOCOL_DARKPLACES3 || cls.protocol == PROTOCOL_DARKPLACES4 || cls.protocol == PROTOCOL_DARKPLACES5)
cl.stats[STAT_ITEMS] = MSG_ReadLong ();
cl.onground = (bits & SU_ONGROUND) != 0;
csqc_onground = cl.onground; //[515]: cause without this csqc will receive not right value on svc_print =/
cl.inwater = (bits & SU_INWATER) != 0;
- if (cl.protocol == PROTOCOL_DARKPLACES5)
+ if (cls.protocol == PROTOCOL_DARKPLACES5)
{
cl.stats[STAT_WEAPONFRAME] = (bits & SU_WEAPONFRAME) ? MSG_ReadShort() : 0;
cl.stats[STAT_ARMOR] = (bits & SU_ARMOR) ? MSG_ReadShort() : 0;
cl.stats[STAT_CELLS] = MSG_ReadShort();
cl.stats[STAT_ACTIVEWEAPON] = (unsigned short) MSG_ReadShort ();
}
- else if (cl.protocol == PROTOCOL_QUAKE || cl.protocol == PROTOCOL_QUAKEDP || cl.protocol == PROTOCOL_NEHAHRAMOVIE || cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3 || cl.protocol == PROTOCOL_DARKPLACES4)
+ else if (cls.protocol == PROTOCOL_QUAKE || cls.protocol == PROTOCOL_QUAKEDP || cls.protocol == PROTOCOL_NEHAHRAMOVIE || cls.protocol == PROTOCOL_DARKPLACES1 || cls.protocol == PROTOCOL_DARKPLACES2 || cls.protocol == PROTOCOL_DARKPLACES3 || cls.protocol == PROTOCOL_DARKPLACES4)
{
cl.stats[STAT_WEAPONFRAME] = (bits & SU_WEAPONFRAME) ? MSG_ReadByte() : 0;
cl.stats[STAT_ARMOR] = (bits & SU_ARMOR) ? MSG_ReadByte() : 0;
if (bits & SU_VIEWZOOM)
{
- if (cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3 || cl.protocol == PROTOCOL_DARKPLACES4)
+ if (cls.protocol == PROTOCOL_DARKPLACES2 || cls.protocol == PROTOCOL_DARKPLACES3 || cls.protocol == PROTOCOL_DARKPLACES4)
cl.stats[STAT_VIEWZOOM] = MSG_ReadByte();
else
cl.stats[STAT_VIEWZOOM] = (unsigned short) MSG_ReadShort();
vec3_t org;
int sound_num, vol, atten;
- MSG_ReadVector(org, cl.protocol);
+ MSG_ReadVector(org, cls.protocol);
if (large)
sound_num = (unsigned short) MSG_ReadShort ();
else
vec3_t org;
int modelindex, startframe, framecount, framerate;
- MSG_ReadVector(org, cl.protocol);
+ MSG_ReadVector(org, cls.protocol);
modelindex = MSG_ReadByte ();
startframe = MSG_ReadByte ();
framecount = MSG_ReadByte ();
vec3_t org;
int modelindex, startframe, framecount, framerate;
- MSG_ReadVector(org, cl.protocol);
+ MSG_ReadVector(org, cls.protocol);
modelindex = (unsigned short) MSG_ReadShort ();
startframe = (unsigned short) MSG_ReadShort ();
framecount = MSG_ReadByte ();
beam_t *b = NULL;
ent = (unsigned short) MSG_ReadShort ();
- MSG_ReadVector(start, cl.protocol);
- MSG_ReadVector(end, cl.protocol);
+ MSG_ReadVector(start, cls.protocol);
+ MSG_ReadVector(end, cls.protocol);
if (ent >= MAX_EDICTS)
{
{
case TE_WIZSPIKE:
// spike hitting wall
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
Matrix4x4_CreateTranslate(&tempmatrix, pos[0], pos[1], pos[2]);
//CL_AllocDlight(NULL, &tempmatrix, 100, 0.12f, 0.50f, 0.12f, 500, 0.2, 0, -1, false, 1, 0.25, 1, 0, 0, LIGHTFLAG_NORMALMODE | LIGHTFLAG_REALTIMEMODE);
case TE_KNIGHTSPIKE:
// spike hitting wall
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
Matrix4x4_CreateTranslate(&tempmatrix, pos[0], pos[1], pos[2]);
//CL_AllocDlight(NULL, &tempmatrix, 100, 0.50f, 0.30f, 0.10f, 500, 0.2, 0, -1, false, 1, 0.25, 1, 0, 0, LIGHTFLAG_NORMALMODE | LIGHTFLAG_REALTIMEMODE);
case TE_SPIKE:
// spike hitting wall
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
if (cl_particles_quake.integer)
CL_RunParticleEffect(pos, vec3_origin, 0, 10);
break;
case TE_SPIKEQUAD:
// quad spike hitting wall
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
if (cl_particles_quake.integer)
CL_RunParticleEffect(pos, vec3_origin, 0, 10);
break;
case TE_SUPERSPIKE:
// super spike hitting wall
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
if (cl_particles_quake.integer)
CL_RunParticleEffect(pos, vec3_origin, 0, 20);
break;
case TE_SUPERSPIKEQUAD:
// quad super spike hitting wall
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
if (cl_particles_quake.integer)
CL_RunParticleEffect(pos, vec3_origin, 0, 20);
// LordHavoc: added for improved blood splatters
case TE_BLOOD:
// blood puff
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
dir[0] = MSG_ReadChar();
dir[1] = MSG_ReadChar();
break;
case TE_SPARK:
// spark shower
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
dir[0] = MSG_ReadChar();
dir[1] = MSG_ReadChar();
CL_SparkShower(pos, dir, count, 1);
break;
case TE_PLASMABURN:
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
Matrix4x4_CreateTranslate(&tempmatrix, pos[0], pos[1], pos[2]);
CL_AllocDlight(NULL, &tempmatrix, 200, 1, 1, 1, 1000, 0.2, 0, -1, true, 1, 0.25, 1, 0, 0, LIGHTFLAG_NORMALMODE | LIGHTFLAG_REALTIMEMODE);
// LordHavoc: added for improved gore
case TE_BLOODSHOWER:
// vaporized body
- MSG_ReadVector(pos, cl.protocol); // mins
- MSG_ReadVector(pos2, cl.protocol); // maxs
- velspeed = MSG_ReadCoord(cl.protocol); // speed
+ MSG_ReadVector(pos, cls.protocol); // mins
+ MSG_ReadVector(pos2, cls.protocol); // maxs
+ velspeed = MSG_ReadCoord(cls.protocol); // speed
count = (unsigned short) MSG_ReadShort(); // number of particles
CL_BloodShower(pos, pos2, velspeed, count);
break;
case TE_PARTICLECUBE:
// general purpose particle effect
- MSG_ReadVector(pos, cl.protocol); // mins
- MSG_ReadVector(pos2, cl.protocol); // maxs
- MSG_ReadVector(dir, cl.protocol); // dir
+ MSG_ReadVector(pos, cls.protocol); // mins
+ MSG_ReadVector(pos2, cls.protocol); // maxs
+ MSG_ReadVector(dir, cls.protocol); // dir
count = (unsigned short) MSG_ReadShort(); // number of particles
colorStart = MSG_ReadByte(); // color
colorLength = MSG_ReadByte(); // gravity (1 or 0)
- velspeed = MSG_ReadCoord(cl.protocol); // randomvel
+ velspeed = MSG_ReadCoord(cls.protocol); // randomvel
CL_ParticleCube(pos, pos2, dir, count, colorStart, colorLength, velspeed);
break;
case TE_PARTICLERAIN:
// general purpose particle effect
- MSG_ReadVector(pos, cl.protocol); // mins
- MSG_ReadVector(pos2, cl.protocol); // maxs
- MSG_ReadVector(dir, cl.protocol); // dir
+ MSG_ReadVector(pos, cls.protocol); // mins
+ MSG_ReadVector(pos2, cls.protocol); // maxs
+ MSG_ReadVector(dir, cls.protocol); // dir
count = (unsigned short) MSG_ReadShort(); // number of particles
colorStart = MSG_ReadByte(); // color
CL_ParticleRain(pos, pos2, dir, count, colorStart, 0);
case TE_PARTICLESNOW:
// general purpose particle effect
- MSG_ReadVector(pos, cl.protocol); // mins
- MSG_ReadVector(pos2, cl.protocol); // maxs
- MSG_ReadVector(dir, cl.protocol); // dir
+ MSG_ReadVector(pos, cls.protocol); // mins
+ MSG_ReadVector(pos2, cls.protocol); // maxs
+ MSG_ReadVector(dir, cls.protocol); // dir
count = (unsigned short) MSG_ReadShort(); // number of particles
colorStart = MSG_ReadByte(); // color
CL_ParticleRain(pos, pos2, dir, count, colorStart, 1);
case TE_GUNSHOT:
// bullet hitting wall
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
if (cl_particles_quake.integer)
CL_RunParticleEffect(pos, vec3_origin, 0, 20);
case TE_GUNSHOTQUAD:
// quad bullet hitting wall
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
if (cl_particles_quake.integer)
CL_RunParticleEffect(pos, vec3_origin, 0, 20);
case TE_EXPLOSION:
// rocket explosion
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 10);
CL_ParticleExplosion(pos);
// LordHavoc: boosted color from 1.0, 0.8, 0.4 to 1.25, 1.0, 0.5
case TE_EXPLOSIONQUAD:
// quad rocket explosion
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 10);
CL_ParticleExplosion(pos);
Matrix4x4_CreateTranslate(&tempmatrix, pos[0], pos[1], pos[2]);
case TE_EXPLOSION3:
// Nehahra movie colored lighting explosion
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 10);
CL_ParticleExplosion(pos);
Matrix4x4_CreateTranslate(&tempmatrix, pos[0], pos[1], pos[2]);
- color[0] = MSG_ReadCoord(cl.protocol) * (2.0f / 1.0f);
- color[1] = MSG_ReadCoord(cl.protocol) * (2.0f / 1.0f);
- color[2] = MSG_ReadCoord(cl.protocol) * (2.0f / 1.0f);
+ color[0] = MSG_ReadCoord(cls.protocol) * (2.0f / 1.0f);
+ color[1] = MSG_ReadCoord(cls.protocol) * (2.0f / 1.0f);
+ color[2] = MSG_ReadCoord(cls.protocol) * (2.0f / 1.0f);
CL_AllocDlight(NULL, &tempmatrix, 350, color[0], color[1], color[2], 700, 0.5, 0, -1, true, 1, 0.25, 0.25, 1, 1, LIGHTFLAG_NORMALMODE | LIGHTFLAG_REALTIMEMODE);
if (gamemode != GAME_NEXUIZ)
S_StartSound(-1, 0, cl.sfx_r_exp3, pos, 1, 1);
case TE_EXPLOSIONRGB:
// colored lighting explosion
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 10);
CL_ParticleExplosion(pos);
color[0] = MSG_ReadByte() * (2.0f / 255.0f);
case TE_TAREXPLOSION:
// tarbaby explosion
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 10);
CL_BlobExplosion(pos);
break;
case TE_SMALLFLASH:
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 10);
Matrix4x4_CreateTranslate(&tempmatrix, pos[0], pos[1], pos[2]);
CL_AllocDlight(NULL, &tempmatrix, 200, 2, 2, 2, 1000, 0.2, 0, -1, true, 1, 0.25, 1, 0, 0, LIGHTFLAG_NORMALMODE | LIGHTFLAG_REALTIMEMODE);
break;
case TE_CUSTOMFLASH:
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 4);
radius = (MSG_ReadByte() + 1) * 8;
velspeed = (MSG_ReadByte() + 1) * (1.0 / 256.0);
break;
case TE_FLAMEJET:
- MSG_ReadVector(pos, cl.protocol);
- MSG_ReadVector(dir, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
+ MSG_ReadVector(dir, cls.protocol);
count = MSG_ReadByte();
CL_Flames(pos, dir, count);
break;
break;
case TE_LAVASPLASH:
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_LavaSplash(pos);
break;
case TE_TELEPORT:
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
Matrix4x4_CreateTranslate(&tempmatrix, pos[0], pos[1], pos[2]);
CL_AllocDlight(NULL, &tempmatrix, 200, 1.0f, 1.0f, 1.0f, 600, 99.0f, 0, -1, true, 1, 0.25, 1, 0, 0, LIGHTFLAG_NORMALMODE | LIGHTFLAG_REALTIMEMODE);
CL_TeleportSplash(pos);
case TE_EXPLOSION2:
// color mapped explosion
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 10);
colorStart = MSG_ReadByte();
colorLength = MSG_ReadByte();
break;
case TE_TEI_G3:
- MSG_ReadVector(pos, cl.protocol);
- MSG_ReadVector(pos2, cl.protocol);
- MSG_ReadVector(dir, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
+ MSG_ReadVector(pos2, cls.protocol);
+ MSG_ReadVector(dir, cls.protocol);
CL_BeamParticle(pos, pos2, 8, 1, 1, 1, 1, 1);
break;
case TE_TEI_SMOKE:
- MSG_ReadVector(pos, cl.protocol);
- MSG_ReadVector(dir, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
+ MSG_ReadVector(dir, cls.protocol);
count = MSG_ReadByte();
CL_FindNonSolidLocation(pos, pos, 4);
CL_Tei_Smoke(pos, dir, count);
break;
case TE_TEI_BIGEXPLOSION:
- MSG_ReadVector(pos, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
CL_FindNonSolidLocation(pos, pos, 10);
CL_ParticleExplosion(pos);
Matrix4x4_CreateTranslate(&tempmatrix, pos[0], pos[1], pos[2]);
break;
case TE_TEI_PLASMAHIT:
- MSG_ReadVector(pos, cl.protocol);
- MSG_ReadVector(dir, cl.protocol);
+ MSG_ReadVector(pos, cls.protocol);
+ MSG_ReadVector(dir, cls.protocol);
count = MSG_ReadByte();
CL_FindNonSolidLocation(pos, pos, 5);
CL_Tei_PlasmaHit(pos, dir, count);
// hack for unmarked Nehahra movie demos which had a custom protocol
if (protocol == PROTOCOL_QUAKEDP && cls.demoplayback && demo_nehahra.integer)
protocol = PROTOCOL_NEHAHRAMOVIE;
- cl.protocol = protocol;
+ cls.protocol = protocol;
break;
case svc_disconnect:
case svc_setangle:
for (i=0 ; i<3 ; i++)
- cl.viewangles[i] = MSG_ReadAngle (cl.protocol);
+ cl.viewangles[i] = MSG_ReadAngle (cls.protocol);
break;
case svc_setview:
break;
case svc_precache:
- if (cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3)
+ if (cls.protocol == PROTOCOL_DARKPLACES1 || cls.protocol == PROTOCOL_DARKPLACES2 || cls.protocol == PROTOCOL_DARKPLACES3)
{
// was svc_sound2 in protocols 1, 2, 3, removed in 4, 5, changed to svc_precache in 6
CL_ParseStartSoundPacket(true);
if (gamemode == GAME_TENEBRAE)
{
// repeating particle effect
- MSG_ReadCoord(cl.protocol);
- MSG_ReadCoord(cl.protocol);
- MSG_ReadCoord(cl.protocol);
- MSG_ReadCoord(cl.protocol);
- MSG_ReadCoord(cl.protocol);
- MSG_ReadCoord(cl.protocol);
+ MSG_ReadCoord(cls.protocol);
+ MSG_ReadCoord(cls.protocol);
+ MSG_ReadCoord(cls.protocol);
+ MSG_ReadCoord(cls.protocol);
+ MSG_ReadCoord(cls.protocol);
+ MSG_ReadCoord(cls.protocol);
MSG_ReadByte();
MSG_ReadLong();
MSG_ReadLong();
if (gamemode == GAME_TENEBRAE)
{
// particle effect
- MSG_ReadCoord(cl.protocol);
- MSG_ReadCoord(cl.protocol);
- MSG_ReadCoord(cl.protocol);
+ MSG_ReadCoord(cls.protocol);
+ MSG_ReadCoord(cls.protocol);
+ MSG_ReadCoord(cls.protocol);
MSG_ReadByte();
MSG_ReadString();
}
cls.signon = SIGNONS;
CL_SignonReply ();
}
- if (cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3)
+ if (cls.protocol == PROTOCOL_DARKPLACES1 || cls.protocol == PROTOCOL_DARKPLACES2 || cls.protocol == PROTOCOL_DARKPLACES3)
EntityFrame_CL_ReadFrame();
- else if (cl.protocol == PROTOCOL_DARKPLACES4)
+ else if (cls.protocol == PROTOCOL_DARKPLACES4)
EntityFrame4_CL_ReadFrame();
else
EntityFrame5_CL_ReadFrame();