From f407b2b8e98c2f00ed6e53556382a4b582d89e57 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Mon, 5 Nov 2018 04:33:46 +0100 Subject: [PATCH] Increase Script MAX_GLOBALS in vanilla game DLL It's the same value d3xp uses. This is for mods that have their own (more complex) scripts, but use the standard base.dll/.so --- neo/game/script/Script_Program.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/game/script/Script_Program.h b/neo/game/script/Script_Program.h index 59756770..ae602841 100644 --- a/neo/game/script/Script_Program.h +++ b/neo/game/script/Script_Program.h @@ -44,7 +44,7 @@ class idSaveGame; class idRestoreGame; #define MAX_STRING_LEN 128 -#define MAX_GLOBALS 196608 // in bytes +#define MAX_GLOBALS 296608 // in bytes - DG: increased this for better support of mods that use the vanilla game dll #define MAX_STRINGS 1024 #define MAX_FUNCS 3072 #define MAX_STATEMENTS 81920 // statement_t - 18 bytes last I checked