diff options
Diffstat (limited to 'src/game/g_physics.c')
-rw-r--r-- | src/game/g_physics.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_physics.c b/src/game/g_physics.c index e9c19077..b5221352 100644 --- a/src/game/g_physics.c +++ b/src/game/g_physics.c @@ -61,7 +61,9 @@ static void G_Bounce( gentity_t *ent, trace_t *trace ) if( VectorLength( ent->s.pos.trDelta ) < 10 ) { - VectorMA( trace->endpos, 0.5, trace->plane.normal, trace->endpos ); // make sure it is off ground + VectorMA( trace->endpos, 0.5f, trace->plane.normal, trace->endpos ); // make sure it is off ground + // Never allow origin to be snapped lower (buildables fall through map bug) + trace->endpos[2] = (float)ceil(trace->endpos[2]); SnapVector( trace->endpos ); G_SetOrigin( ent, trace->endpos ); ent->s.groundEntityNum = trace->entityNum; |