- falladjustz

This commit is contained in:
Christoph Oelckers 2022-09-12 18:38:51 +02:00
parent 6482fefeb3
commit 0c7274752c
3 changed files with 6 additions and 6 deletions

View file

@ -5141,7 +5141,7 @@ void fall_common(DDukeActor *actor, int playernum, int JIBS6, int DRONE, int BLO
}
}
if (actor->sector()->lotag == 1)
actor->add_int_z(gs.actorinfo[actor->spr.picnum].falladjustz);
actor->spr.pos.Z += gs.actorinfo[actor->spr.picnum].falladjustz;
else actor->vel.Z = 0;
}
}

View file

@ -152,7 +152,7 @@ void initactorflags_d()
for (auto &fa : gs.actorinfo)
{
fa.falladjustz = 24 << 8;
fa.falladjustz = 24;
}
gs.actorinfo[OCTABRAIN].falladjustz = gs.actorinfo[COMMANDER].falladjustz = gs.actorinfo[DRONE].falladjustz = 0;

View file

@ -112,13 +112,13 @@ void initactorflags_r()
for (auto& fa : gs.actorinfo)
{
fa.falladjustz = 24 << 8;
fa.falladjustz = 24;
}
if (isRRRA())
{
gs.actorinfo[HULKBOAT].falladjustz = 12 << 8;
gs.actorinfo[MINIONBOAT].falladjustz = 3 << 8;
gs.actorinfo[CHEERBOAT].falladjustz = gs.actorinfo[EMPTYBOAT].falladjustz = 6 << 8;
gs.actorinfo[HULKBOAT].falladjustz = 12;
gs.actorinfo[MINIONBOAT].falladjustz = 3;
gs.actorinfo[CHEERBOAT].falladjustz = gs.actorinfo[EMPTYBOAT].falladjustz = 6;
}
gs.actorinfo[DRONE].falladjustz = 0;