Ensure the beam entitys' angles get set.

This fixes the incorrectly oriented beam entities.
This commit is contained in:
Bill Currie 2012-01-21 16:18:20 +09:00
parent 197481bdbb
commit 3c3a9d0a33
2 changed files with 4 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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);
}
}