Fixed beam const vec3_t parameter

This commit is contained in:
smallmodel 2023-07-10 23:07:57 +02:00
parent 819fe53eaa
commit 7cc687e110
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 48 additions and 48 deletions

View file

@ -1171,30 +1171,30 @@ void CG_AddBeams(void)
} }
void CG_CreateBeam( void CG_CreateBeam(
vec3_t start, const vec3_t start,
vec3_t dir, const vec3_t dir,
int owner, int owner,
qhandle_t hModel, qhandle_t hModel,
float alpha, float alpha,
float scale, float scale,
int flags, int flags,
float length, float length,
int life, int life,
qboolean create, qboolean create,
vec3_t endpointvec, const vec3_t endpointvec,
int min_offset, int min_offset,
int max_offset, int max_offset,
int overlap, int overlap,
int numSubdivisions, int numSubdivisions,
int delay, int delay,
const char *beamshadername, const char *beamshadername,
float modulate[4], float modulate[4],
int numspherebeams, int numspherebeams,
float sphereradius, float sphereradius,
int toggledelay, int toggledelay,
float endalpha, float endalpha,
int renderfx, int renderfx,
const char *name const char *name
) )
{ {
int i; int i;

View file

@ -773,30 +773,30 @@ extern "C" {
float scale, int renderfx, const char *beamshadername, byte modulate[4], int flags, int owner, float life float scale, int renderfx, const char *beamshadername, byte modulate[4], int flags, int owner, float life
); );
void CG_CreateBeam( void CG_CreateBeam(
vec3_t start, const vec3_t start,
vec3_t dir, const vec3_t dir,
int owner, int owner,
qhandle_t hModel, qhandle_t hModel,
float alpha, float alpha,
float scale, float scale,
int flags, int flags,
float length, float length,
int life, int life,
qboolean create, qboolean create,
vec3_t endpointvec, const vec3_t endpointvec,
int min_offset, int min_offset,
int max_offset, int max_offset,
int overlap, int overlap,
int subdivisions, int subdivisions,
int delay, int delay,
const char *beamshader, const char *beamshader,
float modulate[4], float modulate[4],
int numspherebeams, int numspherebeams,
float sphereradius, float sphereradius,
int toggledelay, int toggledelay,
float endalpha, float endalpha,
int renderfx, int renderfx,
const char *name const char *name
); );
void CG_KillBeams(int entity_number); void CG_KillBeams(int entity_number);