commit 77dc0ed49087ba48f4312bb1a3948d9f5e5475cf Author: devhc Date: Thu Apr 21 21:08:57 2011 +0200 use a more up-to-date origin in G_RoomForClassChange() diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 8e80048..21e014e 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1610,7 +1610,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 ];