mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
SPB on floor
This commit is contained in:
parent
d39d40360d
commit
55c2fe31be
1 changed files with 4 additions and 4 deletions
|
|
@ -8878,10 +8878,10 @@ void A_SPBChase(mobj_t *actor)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finally, no matter what, the spb should not be able to be under the ground, or above the ceiling;
|
// Finally, no matter what, the spb should not be able to be under the ground, or above the ceiling;
|
||||||
if (actor->z < actor->floorz + 8*mapobjectscale)
|
if (actor->z < actor->floorz)
|
||||||
actor->z = actor->floorz + 8*mapobjectscale;
|
actor->z = actor->floorz;
|
||||||
else if (actor->z > actor->ceilingz - 8*mapobjectscale)
|
else if (actor->z > actor->ceilingz - actor->height)
|
||||||
actor->z = actor->ceilingz - 8*mapobjectscale;
|
actor->z = actor->ceilingz - actor->height;
|
||||||
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue