mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-20 16:10:52 +00:00
- floatification in genDudePrepare
This commit is contained in:
parent
aa909b843d
commit
02aee7f8aa
1 changed files with 4 additions and 3 deletions
|
@ -2470,11 +2470,12 @@ bool genDudePrepare(DBloodActor* actor, int propId)
|
|||
seqSpawn(actor->xspr.data2 + actor->xspr.aiState->seqId, actor, -1);
|
||||
|
||||
// make sure dudes aren't in the floor or ceiling
|
||||
int zTop, zBot; GetActorExtents(actor, &zTop, &zBot);
|
||||
double zTop, zBot;
|
||||
GetActorExtents(actor, &zTop, &zBot);
|
||||
if (!(actor->sector()->ceilingstat & CSTAT_SECTOR_SKY))
|
||||
actor->add_int_z(ClipLow(actor->sector()->int_ceilingz() - zTop, 0));
|
||||
actor->spr.pos.Z += max(actor->sector()->ceilingz - zTop, 0.);
|
||||
if (!(actor->sector()->floorstat & CSTAT_SECTOR_SKY))
|
||||
actor->add_int_z(ClipHigh(actor->sector()->int_floorz() - zBot, 0));
|
||||
actor->spr.pos.Z += min(actor->sector()->floorz - zBot, 0.);
|
||||
|
||||
actor->set_native_clipdist(ClipRange((actor->spr.xrepeat + actor->spr.yrepeat) >> 1, 4, 120));
|
||||
if (propId) break;
|
||||
|
|
Loading…
Reference in a new issue