Trying to fix setting of origins for brush ents without origin brush

Not tested yet ...
This commit is contained in:
Walter Hennecke 2012-11-13 09:54:11 +01:00
parent 6fdbc08b04
commit f5fad5b3e8

View file

@ -991,6 +991,9 @@ void G_Sound( gentity_t *ent, int soundIndex ) {
* @param origin the new origin
*/
void G_SetOrigin( gentity_t *ent, vec3_t origin ) {
// lets try this to fix setting origins for brush ents without origin brush
VectorCopy(origin, ent->pos1); // needs testing
VectorCopy( origin, ent->s.pos.trBase );
ent->s.pos.trType = TR_STATIONARY;
ent->s.pos.trTime = 0;