mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
CL_ParseMuzzleFlash* zu CL_AddMuzzleFlash* umbenannt
This commit is contained in:
parent
7841c910ca
commit
0c961f00bf
3 changed files with 9 additions and 9 deletions
|
@ -38,7 +38,7 @@ extern struct model_s *cl_mod_flash;
|
|||
|
||||
extern cparticle_t *active_particles, *free_particles;
|
||||
|
||||
void CL_ParseMuzzleFlash (void) {
|
||||
void CL_AddMuzzleFlash (void) {
|
||||
vec3_t fv, rv;
|
||||
cdlight_t *dl;
|
||||
int i, weapon;
|
||||
|
@ -50,7 +50,7 @@ void CL_ParseMuzzleFlash (void) {
|
|||
i = MSG_ReadShort (&net_message);
|
||||
|
||||
if (i < 1 || i >= MAX_EDICTS)
|
||||
Com_Error (ERR_DROP, "CL_ParseMuzzleFlash: bad entity");
|
||||
Com_Error (ERR_DROP, "CL_AddMuzzleFlash: bad entity");
|
||||
|
||||
weapon = MSG_ReadByte (&net_message);
|
||||
silenced = weapon & MZ_SILENCED;
|
||||
|
@ -271,7 +271,7 @@ void CL_ParseMuzzleFlash (void) {
|
|||
}
|
||||
}
|
||||
|
||||
void CL_ParseMuzzleFlash2 (void) {
|
||||
void CL_AddMuzzleFlash2 (void) {
|
||||
int ent;
|
||||
vec3_t origin;
|
||||
unsigned flash_number;
|
||||
|
@ -282,12 +282,12 @@ void CL_ParseMuzzleFlash2 (void) {
|
|||
ent = MSG_ReadShort (&net_message);
|
||||
|
||||
if (ent < 1 || ent >= MAX_EDICTS)
|
||||
Com_Error (ERR_DROP, "CL_ParseMuzzleFlash2: bad entity");
|
||||
Com_Error (ERR_DROP, "CL_AddMuzzleFlash2: bad entity");
|
||||
|
||||
flash_number = MSG_ReadByte (&net_message);
|
||||
|
||||
if (flash_number > 210)
|
||||
Com_Error (ERR_DROP, "CL_ParseMuzzleFlash2: bad offset");
|
||||
Com_Error (ERR_DROP, "CL_AddMuzzleFlash2: bad offset");
|
||||
|
||||
/* locate the origin */
|
||||
AngleVectors (cl_entities[ent].current.angles, forward, right, NULL);
|
||||
|
|
|
@ -1036,11 +1036,11 @@ void CL_ParseServerMessage (void) {
|
|||
break;
|
||||
|
||||
case svc_muzzleflash:
|
||||
CL_ParseMuzzleFlash ();
|
||||
CL_AddMuzzleFlash ();
|
||||
break;
|
||||
|
||||
case svc_muzzleflash2:
|
||||
CL_ParseMuzzleFlash2 ();
|
||||
CL_AddMuzzleFlash2 ();
|
||||
break;
|
||||
|
||||
case svc_download:
|
||||
|
|
|
@ -389,8 +389,8 @@ void CL_ParseFrame (void);
|
|||
|
||||
void CL_ParseTEnt (void);
|
||||
void CL_ParseConfigString (void);
|
||||
void CL_ParseMuzzleFlash (void);
|
||||
void CL_ParseMuzzleFlash2 (void);
|
||||
void CL_AddMuzzleFlash (void);
|
||||
void CL_AddMuzzleFlash2 (void);
|
||||
void SmokeAndFlash(vec3_t origin);
|
||||
|
||||
void CL_SetLightstyle (int i);
|
||||
|
|
Loading…
Reference in a new issue