diff options
author | M. Kristall <mkpdev@gmail.com> | 2011-09-25 21:27:25 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:18:14 +0000 |
commit | 50683721c2b68d1b71945115f30f93557ee94217 (patch) | |
tree | dbb09f26f7c5cd0ffff4dbccab2be249208bc554 /src/game | |
parent | 3826b4c224aa491c52802d826cdee9cafd5408f0 (diff) |
* (bug 5004) use current player origin in G_RoomForClassChange()
(/dev/humancontroller)
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_cmds.c | 2 |
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 ]; |