orbinaut waterski is now based on owner waterski at the time of throw

This commit is contained in:
Ashnal 2025-10-13 01:26:38 -04:00
parent 2270813eee
commit d782a6fdb7

View file

@ -325,10 +325,9 @@ void Obj_OrbinautThrown(mobj_t *th, fixed_t finalSpeed, fixed_t dir)
{ {
th->color = orbinaut_owner(th)->player->skincolor; th->color = orbinaut_owner(th)->player->skincolor;
const mobj_t *owner = orbinaut_owner(th); const boolean ownerwaterrun = K_WaterRun(orbinaut_owner(th));
const ffloor_t *rover = P_IsObjectFlipped(owner) ? owner->ceilingrover : owner->floorrover;
if (dir >= 0 && rover && (rover->fofflags & FOF_SWIMMABLE)) if (dir >= 0 && ownerwaterrun)
{ {
// The owner can run on water, so we should too! // The owner can run on water, so we should too!
orbinaut_flags(th) |= ORBI_WATERSKI; orbinaut_flags(th) |= ORBI_WATERSKI;