Skip to content

Commit

Permalink
- Duke: Remove 2x player sprite Z setters that shouldn't be necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjr4077au committed Nov 26, 2022
1 parent af04627 commit 7cc015c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions source/games/duke/src/actors_d.cpp
Expand Up @@ -3156,9 +3156,6 @@ void move_d(DDukeActor *actor, int playernum, int xvel)
}
}
}
else if (actor->spr.picnum == APLAYER)
if ((actor->spr.pos.Z - actor->ceilingz) < 32)
actor->spr.pos.Z = actor->ceilingz + 32;

daxvel = actor->vel.X;
angdif = actor->spr.angle;
Expand Down
3 changes: 0 additions & 3 deletions source/games/duke/src/actors_r.cpp
Expand Up @@ -3187,9 +3187,6 @@ void move_r(DDukeActor *actor, int pnum, int xvel)
}
}
}
else if (actor->spr.picnum == APLAYER)
if ((actor->spr.pos.Z - actor->ceilingz) < 32)
actor->spr.pos.Z = actor->ceilingz + 32;

daxvel = actor->vel.X;
angdif = actor->spr.angle;
Expand Down

0 comments on commit 7cc015c

Please sign in to comment.