foxygit / doom Log in
commit 3e760f384569cc159bb43bb3ed417feefa00ed44
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Sat Sep 10 18:52:56 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Sat Oct 15 18:15:44 2022 +0300

    heretic: Move P_UndoPlayerChicken prototype to p_local.h
---
 src/heretic/p_local.h | 2 ++
 src/heretic/sb_bar.c  | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/heretic/p_local.h b/src/heretic/p_local.h
index 5bb50ed5..5889980c 100644
--- a/src/heretic/p_local.h
+++ b/src/heretic/p_local.h
@@ -119,6 +119,8 @@ void P_PlayerRemoveArtifact(player_t * player, int slot);
 void P_PlayerUseArtifact(player_t * player, artitype_t arti);
 boolean P_UseArtifact(player_t * player, artitype_t arti);
 int P_GetPlayerNum(player_t * player);
+boolean P_UndoPlayerChicken(player_t *player);
+

 // ***** P_MOBJ *****

diff --git a/src/heretic/sb_bar.c b/src/heretic/sb_bar.c
index 9bf7998c..bcc5d765 100644
--- a/src/heretic/sb_bar.c
+++ b/src/heretic/sb_bar.c
@@ -1242,8 +1242,6 @@ static void CheatWarpFunc(player_t * player, Cheat_t * cheat)

 static void CheatChickenFunc(player_t * player, Cheat_t * cheat)
 {
-    extern boolean P_UndoPlayerChicken(player_t * player);
-
     if (player->chickenTics)
     {
         if (P_UndoPlayerChicken(player))