commit b8d2bc344705ae3c530da783db45b3fefb94a5b3
Author: Turo Lamminen <turol@iki.fi>
AuthorDate: Thu Sep 8 13:32:31 2022 +0300
Commit: Turo Lamminen <turol@iki.fi>
CommitDate: Thu Nov 3 10:25:16 2022 +0200
doom: Move numflats extern declaration to r_data.h
---
src/doom/p_spec.c | 2 --
src/doom/r_data.h | 4 ++++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/doom/p_spec.c b/src/doom/p_spec.c
index 7e0ca70e..3e8d35bd 100644
--- a/src/doom/p_spec.c
+++ b/src/doom/p_spec.c
@@ -1192,8 +1192,6 @@ static void DonutOverrun(fixed_t *s3_floorheight, short *s3_floorpic,
static int tmp_s3_floorheight;
static int tmp_s3_floorpic;
- extern int numflats;
-
if (first)
{
int p;
diff --git a/src/doom/r_data.h b/src/doom/r_data.h
index 30ab1af6..1b273088 100644
--- a/src/doom/r_data.h
+++ b/src/doom/r_data.h
@@ -48,4 +48,8 @@ int R_FlatNumForName(const char *name);
int R_TextureNumForName(const char *name);
int R_CheckTextureNumForName(const char *name);
+
+extern int numflats;
+
+
#endif