diff options
author | Tim Angus <tim@ngus.net> | 2007-11-14 13:24:21 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2007-11-14 13:24:21 +0000 |
commit | c6c63e8125ae1ffb0f19ce7836ac720f76159d2e (patch) | |
tree | 5e5ce4c6a99f6b33b8d51365b699277255b216fa /src | |
parent | 74c8d33a2b830a47c31272bcf16cbbfd404ce0e8 (diff) |
* (bug 3417) Fix getting stuck while evolving in some situations
(thebenmachine@googlemail.com)
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 4a9f1cd7..6364c8bb 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1522,17 +1522,17 @@ static qboolean G_RoomForClassChange( gentity_t *ent, pClass_t class, //compute a place up in the air to start the real trace VectorCopy( newOrigin, temp ); temp[ 2 ] += nudgeHeight; - trap_Trace( &tr, newOrigin, toMins, toMaxs, temp, ent->s.number, MASK_SHOT ); + trap_Trace( &tr, newOrigin, toMins, toMaxs, temp, ent->s.number, MASK_PLAYERSOLID ); //trace down to the ground so that we can evolve on slopes VectorCopy( newOrigin, temp ); temp[ 2 ] += ( nudgeHeight * tr.fraction ); - trap_Trace( &tr, temp, toMins, toMaxs, newOrigin, ent->s.number, MASK_SHOT ); + trap_Trace( &tr, temp, toMins, toMaxs, newOrigin, ent->s.number, MASK_PLAYERSOLID ); VectorCopy( tr.endpos, newOrigin ); //make REALLY sure trap_Trace( &tr, newOrigin, toMins, toMaxs, newOrigin, - ent->s.number, MASK_SHOT ); + ent->s.number, MASK_PLAYERSOLID ); //check there is room to evolve if( !tr.startsolid && tr.fraction == 1.0f ) |