foxygit / doom Log in
commit 6b5982fa5dd25697e4cb42aff13551bb98a61eab
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Sat Sep 10 18:24:08 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Sat Oct 15 18:15:44 2022 +0300

    heretic: Move topslope and bottomslope extern declarations to p_local.h
---
 src/heretic/p_local.h | 3 +++
 src/heretic/p_map.c   | 1 -
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/heretic/p_local.h b/src/heretic/p_local.h
index 69c02225..5bb50ed5 100644
--- a/src/heretic/p_local.h
+++ b/src/heretic/p_local.h
@@ -225,6 +225,9 @@ void P_FakeZMovement(mobj_t * mo);
 boolean P_TryMove(mobj_t * thing, fixed_t x, fixed_t y);
 boolean P_TeleportMove(mobj_t * thing, fixed_t x, fixed_t y);
 void P_SlideMove(mobj_t * mo);
+
+extern fixed_t topslope, bottomslope;   // slopes to top and bottom of target
+
 boolean P_CheckSight(mobj_t * t1, mobj_t * t2);
 void P_UseLines(player_t * player);

diff --git a/src/heretic/p_map.c b/src/heretic/p_map.c
index 8afcf860..ac516e15 100644
--- a/src/heretic/p_map.c
+++ b/src/heretic/p_map.c
@@ -1167,7 +1167,6 @@ fixed_t attackrange;

 fixed_t aimslope;

-extern fixed_t topslope, bottomslope;   // slopes to top and bottom of target

 /*
 ===============================================================================