From 50683721c2b68d1b71945115f30f93557ee94217 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Sun, 25 Sep 2011 21:27:25 +0000 Subject: * (bug 5004) use current player origin in G_RoomForClassChange() (/dev/humancontroller) --- src/game/g_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ]; -- cgit