From 837b31c6722f535f062f64de0807095197c568f8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 21 Aug 2022 15:47:44 +0200 Subject: [PATCH] - got rid of int_ploz and int_phiz. --- source/games/duke/src/player_r.cpp | 4 ++-- source/games/sw/src/game.h | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/source/games/duke/src/player_r.cpp b/source/games/duke/src/player_r.cpp index e4d580093..053856721 100644 --- a/source/games/duke/src/player_r.cpp +++ b/source/games/duke/src/player_r.cpp @@ -3827,10 +3827,10 @@ HORIZONLY: if (wal->lotag < 44) { dofurniture(clip.hitWall, p->cursector, snum); - pushmove(p->pos, &p->cursector, 172L, (4L << 8), (4L << 8), CLIPMASK0); + pushmove(p->pos, &p->cursector, 172, (4 << 8), (4 << 8), CLIPMASK0); } else - pushmove(p->pos, &p->cursector, 172L, (4L << 8), (4L << 8), CLIPMASK0); + pushmove(p->pos, &p->cursector, 172, (4 << 8), (4 << 8), CLIPMASK0); } } } diff --git a/source/games/sw/src/game.h b/source/games/sw/src/game.h index 12277cab7..dbc2ee588 100644 --- a/source/games/sw/src/game.h +++ b/source/games/sw/src/game.h @@ -604,14 +604,6 @@ struct PLAYER { pos.XY() += { z.X * inttoworld, z.Y * inttoworld }; } - int int_ploz() const - { - return int(loz * zworldtoint); - } - int int_phiz() const - { - return int(hiz * zworldtoint); - } int player_int_ceiling_dist() const { return p_ceiling_dist * 256;