foxygit / doom Log in
commit 8669b9f7d86c51e1901e888468f3e86c7a84a6cc
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Sep 13 20:17:03 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Mon Oct 3 12:52:15 2022 +0300

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

diff --git a/src/hexen/p_local.h b/src/hexen/p_local.h
index c88a5040..158556c4 100644
--- a/src/hexen/p_local.h
+++ b/src/hexen/p_local.h
@@ -117,6 +117,8 @@ boolean P_UseArtifact(player_t * player, artitype_t arti);
 int P_GetPlayerNum(player_t * player);
 void P_TeleportOther(mobj_t * victim);
 void ResetBlasted(mobj_t * mo);
+boolean P_UndoPlayerMorph(player_t *player);
+

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

diff --git a/src/hexen/sb_bar.c b/src/hexen/sb_bar.c
index 704f4138..fa94d59a 100644
--- a/src/hexen/sb_bar.c
+++ b/src/hexen/sb_bar.c
@@ -1772,8 +1772,6 @@ static void CheatWarpFunc(player_t * player, Cheat_t * cheat)

 static void CheatPigFunc(player_t * player, Cheat_t * cheat)
 {
-    extern boolean P_UndoPlayerMorph(player_t * player);
-
     if (player->morphTics)
     {
         P_UndoPlayerMorph(player);