summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2011-09-25 21:27:25 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:14 +0000
commit50683721c2b68d1b71945115f30f93557ee94217 (patch)
treedbb09f26f7c5cd0ffff4dbccab2be249208bc554 /src/game
parent3826b4c224aa491c52802d826cdee9cafd5408f0 (diff)
* (bug 5004) use current player origin in G_RoomForClassChange()
(/dev/humancontroller)
Diffstat (limited to 'src/game')
-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 b8e90239..9e3eff42 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1613,7 +1613,7 @@ static qboolean G_RoomForClassChange( gentity_t *ent, class_t class,
BG_ClassBoundingBox( oldClass, fromMins, fromMaxs, NULL, NULL, NULL );
BG_ClassBoundingBox( class, toMins, toMaxs, NULL, NULL, NULL );
- VectorCopy( ent->s.origin, newOrigin );
+ VectorCopy( ent->client->ps.origin, newOrigin );
// find max x/y diff
maxHorizGrowth = toMaxs[ 0 ] - fromMaxs[ 0 ];