From 472befd183143764218b466bbcda269aa3bb310a Mon Sep 17 00:00:00 2001
From: Louis-Antoine <lamr@free.fr>
Date: Fri, 21 Feb 2020 17:31:32 +0100
Subject: [PATCH] Replace MAX_WADPATH with plain numbers

This is not ideal either, but I would rather
not use a constant for something unrelated.
---
 src/d_netfil.c | 2 +-
 src/d_netfil.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/d_netfil.c b/src/d_netfil.c
index a5d4b71e2d..ecb2229a60 100644
--- a/src/d_netfil.c
+++ b/src/d_netfil.c
@@ -98,7 +98,7 @@ INT32 lastfilenum = -1;
 #ifdef HAVE_BLUA
 luafiletransfer_t *luafiletransfers = NULL;
 boolean waitingforluafiletransfer = false;
-char luafiledir[MAX_WADPATH] = "luafiles";
+char luafiledir[256 + 16] = "luafiles";
 #endif
 
 
diff --git a/src/d_netfil.h b/src/d_netfil.h
index 13087dfb29..830293ca88 100644
--- a/src/d_netfil.h
+++ b/src/d_netfil.h
@@ -93,7 +93,7 @@ typedef struct luafiletransfer_s
 
 extern luafiletransfer_t *luafiletransfers;
 extern boolean waitingforluafiletransfer;
-extern char luafiledir[MAX_WADPATH];
+extern char luafiledir[256 + 16];
 
 void AddLuaFileTransfer(const char *filename, const char *mode);
 void SV_PrepareSendLuaFileToNextNode(void);
-- 
GitLab