Browse Source

ref: fix beams end point

pull/2/head
Alibek Omarov 2 years ago
parent
commit
76d0608ee1
  1. 2
      ref/gl/gl_beams.c
  2. 2
      ref/soft/r_beams.c

2
ref/gl/gl_beams.c

@ -1196,7 +1196,7 @@ void R_BeamDrawCustomEntity( cl_entity_t *ent )
g = ent->curstate.rendercolor.g / 255.0f; g = ent->curstate.rendercolor.g / 255.0f;
b = ent->curstate.rendercolor.b / 255.0f; b = ent->curstate.rendercolor.b / 255.0f;
R_BeamSetup( &beam, ent->origin, ent->angles, ent->curstate.modelindex, 0, ent->curstate.scale, amp, blend, ent->curstate.animtime ); R_BeamSetup( &beam, ent->origin, ent->curstate.angles, ent->curstate.modelindex, 0, ent->curstate.scale, amp, blend, ent->curstate.animtime );
R_BeamSetAttributes( &beam, r, g, b, ent->curstate.framerate, ent->curstate.frame ); R_BeamSetAttributes( &beam, r, g, b, ent->curstate.framerate, ent->curstate.frame );
beam.pFollowModel = NULL; beam.pFollowModel = NULL;

2
ref/soft/r_beams.c

@ -1209,7 +1209,7 @@ void R_BeamDrawCustomEntity( cl_entity_t *ent )
g = ent->curstate.rendercolor.g / 255.0f; g = ent->curstate.rendercolor.g / 255.0f;
b = ent->curstate.rendercolor.b / 255.0f; b = ent->curstate.rendercolor.b / 255.0f;
R_BeamSetup( &beam, ent->origin, ent->angles, ent->curstate.modelindex, 0, ent->curstate.scale, amp, blend, ent->curstate.animtime ); R_BeamSetup( &beam, ent->origin, ent->curstate.angles, ent->curstate.modelindex, 0, ent->curstate.scale, amp, blend, ent->curstate.animtime );
R_BeamSetAttributes( &beam, r, g, b, ent->curstate.framerate, ent->curstate.frame ); R_BeamSetAttributes( &beam, r, g, b, ent->curstate.framerate, ent->curstate.frame );
beam.pFollowModel = NULL; beam.pFollowModel = NULL;

Loading…
Cancel
Save