shithub: choc

Download patch

ref: ff4c976bd88cfb86476f96ca3749a9e11d9b9682
parent: 21599058db1a007755c54a6faca2f8e0c74eda6d
author: Turo Lamminen <turol@iki.fi>
date: Fri Sep 9 11:55:15 EDT 2022

heretic: Move G_CheckDemoStatus prototype to doomdef.h

--- a/src/heretic/d_net.c
+++ b/src/heretic/d_net.c
@@ -36,7 +36,6 @@
 extern void D_DoAdvanceDemo(void);
 extern void D_ProcessEvents(void);
 extern void G_BuildTiccmd(ticcmd_t *cmd, int maketic);
-extern boolean G_CheckDemoStatus(void);
 
 // Called when a player leaves the game
 
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -688,6 +688,7 @@
 
 void G_PlayDemo(char *name);
 void G_TimeDemo(char *name);
+boolean G_CheckDemoStatus(void);
 
 void G_ExitLevel(void);
 void G_SecretExitLevel(void);
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -39,7 +39,6 @@
 
 // Functions
 
-boolean G_CheckDemoStatus(void);
 void G_ReadDemoTiccmd(ticcmd_t * cmd);
 void G_WriteDemoTiccmd(ticcmd_t * cmd);
 void G_PlayerReborn(int player);
--- a/src/heretic/mn_menu.c
+++ b/src/heretic/mn_menu.c
@@ -1044,7 +1044,6 @@
     int key;
     int i;
     MenuItem_t *item;
-    extern void G_CheckDemoStatus(void);
     char *textBuffer;
 
     // In testcontrols mode, none of the function keys should do anything