mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-03-17 16:12:13 +00:00
Trying to fix setting of origins for brush ents without origin brush
Not tested yet ...
This commit is contained in:
parent
6fdbc08b04
commit
f5fad5b3e8
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue