From 3d82a745b352b1baa3cdada47a8c7e6cd04ddd6e Mon Sep 17 00:00:00 2001
From: NY00123 <ny00@outlook.com>
Date: Wed, 13 Nov 2019 23:34:11 +0200
Subject: [PATCH] exhumed.cpp: Comment out the "socket" variable and code that
 uses it. This variable conflicts with library function named "socket".

---
 source/exhumed/src/exhumed.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/source/exhumed/src/exhumed.cpp b/source/exhumed/src/exhumed.cpp
index b7480fa2c..d59bff940 100644
--- a/source/exhumed/src/exhumed.cpp
+++ b/source/exhumed/src/exhumed.cpp
@@ -1096,7 +1096,8 @@ short bMapMode = kFalse;
 short bNoCreatures = kFalse;
 
 short nTotalPlayers = 1;
-short socket = 0;
+// TODO: Rename this (or make it static) so it doesn't conflict with library function
+//short socket = 0;
 
 short nFirstPassword = 0;
 short nFirstPassInfo = 0;
@@ -2310,9 +2311,11 @@ int app_main(int argc, char const* const* argv)
                     case 'h':
                         SetHiRes();
                         break;
+#if 0
                     case 's':
                         socket = atoi(pChar + 1);
                         break;
+#endif
                     case 't':
                         nNetTime = atoi(pChar + 1);
                         if (nNetTime < 0) {
@@ -2479,6 +2482,7 @@ int app_main(int argc, char const* const* argv)
 
     // loc_116A5:
 
+#if 0
     if (nNetPlayerCount)
     {
         InitInput();
@@ -2509,6 +2513,7 @@ int app_main(int argc, char const* const* argv)
             WaitTicks(nWaitTicks);
         }
     }
+#endif
 
     // temp - moving InstallEngine(); before FadeOut as we use nextpage() in FadeOut
     InstallEngine();