mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- 2x int_hiz
This commit is contained in:
parent
7e963cb7a3
commit
d2818322b0
1 changed files with 6 additions and 6 deletions
|
@ -663,11 +663,11 @@ int DoActorJump(DSWActor* actor)
|
|||
actor->add_int_z(actor->user.jump_speed * ACTORMOVETICS);
|
||||
|
||||
// if player gets to close the ceiling while jumping
|
||||
int minh = actor->user.int_hiz() + (tileHeight(actor->spr.picnum) << 8);
|
||||
if (actor->int_pos().Z < minh)
|
||||
double minh = actor->user.hiz + tileHeight(actor->spr.picnum);
|
||||
if (actor->spr.pos.Z < minh)
|
||||
{
|
||||
// put player at the ceiling
|
||||
actor->set_int_z(minh);
|
||||
actor->spr.pos.Z = minh;
|
||||
|
||||
// reverse your speed to falling
|
||||
actor->user.jump_speed = -actor->user.jump_speed;
|
||||
|
@ -829,11 +829,11 @@ int DoJump(DSWActor* actor)
|
|||
actor->add_int_z(actor->user.jump_speed * ACTORMOVETICS);
|
||||
|
||||
// if player gets to close the ceiling while jumping
|
||||
int minh = actor->user.int_hiz() + (tileHeight(actor->spr.picnum) << 8);
|
||||
if (actor->int_pos().Z < minh)
|
||||
double minh = actor->user.hiz + tileHeight(actor->spr.picnum);
|
||||
if (actor->spr.pos.Z < minh)
|
||||
{
|
||||
// put player at the ceiling
|
||||
actor->set_int_z(minh);
|
||||
actor->spr.pos.Z = minh;
|
||||
|
||||
// reverse your speed to falling
|
||||
actor->user.jump_speed = -actor->user.jump_speed;
|
||||
|
|
Loading…
Reference in a new issue