mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Ensure the beam entitys' angles get set.
This fixes the incorrectly oriented beam entities.
This commit is contained in:
parent
197481bdbb
commit
3c3a9d0a33
2 changed files with 4 additions and 0 deletions
|
@ -278,6 +278,7 @@ beam_setup (beam_t *b, qboolean transform)
|
|||
seed = b->seed + ((int) (cl.time * BEAM_SEED_INTERVAL) %
|
||||
BEAM_SEED_INTERVAL);
|
||||
|
||||
ang[ROLL] = 0;
|
||||
while (ent_count--) {
|
||||
tent = new_temp_entity ();
|
||||
tent->next = b->tents;
|
||||
|
@ -293,6 +294,7 @@ beam_setup (beam_t *b, qboolean transform)
|
|||
ang[ROLL] = seed % 360;
|
||||
CL_TransformEntity (&tent->ent, ang, true);
|
||||
}
|
||||
VectorCopy (ang, tent->ent.angles);
|
||||
R_AddEfrags (&tent->ent);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -284,6 +284,7 @@ beam_setup (beam_t *b, qboolean transform)
|
|||
seed = b->seed + ((int) (cl.time * BEAM_SEED_INTERVAL) %
|
||||
BEAM_SEED_INTERVAL);
|
||||
|
||||
ang[ROLL] = 0;
|
||||
while (ent_count--) {
|
||||
tent = new_temp_entity ();
|
||||
tent->next = b->tents;
|
||||
|
@ -299,6 +300,7 @@ beam_setup (beam_t *b, qboolean transform)
|
|||
ang[ROLL] = seed % 360;
|
||||
CL_TransformEntity (&tent->ent, ang, true);
|
||||
}
|
||||
VectorCopy (ang, tent->ent.angles);
|
||||
R_AddEfrags (&tent->ent);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue