summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-15 00:09:01 +0200
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:18 +0200
commit4408a7c6da5e5e67ee18c36ba2c4ff7a350745cd (patch)
tree04ae604de5149417285f7d9d94a6991c443a4bdc /src
parent8cf1bba6ff535d76377b9cbb891d2ff1798648ab (diff)
use a more up-to-date origin in G_RoomForClassChange()
Diffstat (limited to 'src')
-rw-r--r--src/game/g_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index eade857..4c22e71 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -2935,7 +2935,7 @@ qboolean G_RoomForClassChange( gentity_t *ent, pClass_t class, vec3_t newOrigin
BG_FindBBoxForClass( oldClass, fromMins, fromMaxs, NULL, NULL, NULL );
BG_FindBBoxForClass( class, toMins, toMaxs, NULL, NULL, NULL );
- VectorCopy( ent->s.origin, newOrigin );
+ VectorCopy( ent->r.currentOrigin, newOrigin );
// find max x/y diff
maxHorizGrowth = toMaxs[ 0 ] - fromMaxs[ 0 ];