shithub: choc

Download patch

ref: 18fa4d7268517ecb2e10803610b6fa24bd9bb4f3
parent: bd6ef57ac4785f70c58d02feb627407c73a2b909
author: Turo Lamminen <turol@iki.fi>
date: Sat Sep 10 15:17:10 EDT 2022

hexen: Move viewactive extern declaration to h2def.h

--- a/src/hexen/am_map.c
+++ b/src/hexen/am_map.c
@@ -85,8 +85,6 @@
 static boolean ShowKills = 0;
 static unsigned ShowKillsCount = 0;
 
-extern boolean viewactive;
-
 static byte antialias[NUMALIAS][8] = {
     {83, 84, 85, 86, 87, 88, 89, 90},
     {96, 96, 95, 94, 93, 92, 91, 90},
--- a/src/hexen/f_finale.c
+++ b/src/hexen/f_finale.c
@@ -50,8 +50,6 @@
 
 // EXTERNAL DATA DECLARATIONS ----------------------------------------------
 
-extern boolean viewactive;
-
 // PUBLIC DATA DECLARATIONS ------------------------------------------------
 
 // PRIVATE DATA DEFINITIONS ------------------------------------------------
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -612,6 +612,8 @@
 
 extern boolean cdrom;           // true if cd-rom mode active ("-cdrom")
 
+extern boolean viewactive;
+
 extern boolean deathmatch;      // only if started as net death
 
 extern boolean netgame;         // only true if >1 player