shithub: choc

Download patch

ref: 4feb5d07e2f5cbb47bd647f8a88f5d50eac0e63e
parent: c358f7eb00154e58ae3c88d1cc7d4b7be856ccfa
author: Fabian Greffrath <[email protected]>
date: Sat Oct 22 10:10:13 EDT 2016

p_saveg.c/g_game.c: move common defines into the p_saveg.h header

--- a/src/doom/g_game.c
+++ b/src/doom/g_game.c
@@ -1541,9 +1541,6 @@
     M_StringCopy(savename, name, sizeof(savename));
     gameaction = ga_loadgame; 
 } 
- 
-#define VERSIONSIZE		16 
-
 
 void G_DoLoadGame (void) 
 { 
--- a/src/doom/p_saveg.c
+++ b/src/doom/p_saveg.c
@@ -33,9 +33,6 @@
 #include "m_misc.h"
 #include "r_state.h"
 
-#define SAVEGAME_EOF 0x1d
-#define VERSIONSIZE 16 
-
 FILE *save_stream;
 int savegamelength;
 boolean savegame_error;
--- a/src/doom/p_saveg.h
+++ b/src/doom/p_saveg.h
@@ -22,6 +22,9 @@
 
 #include <stdio.h>
 
+#define SAVEGAME_EOF 0x1d
+#define VERSIONSIZE 16
+
 // maximum size of a savegame description
 
 #define SAVESTRINGSIZE 24