overlaytopleft/games-fps/gzdoom/files/0022-Fixed-global-TerrainDef-array-not-being-exported-cor.patch

29 lines
952 B
Diff
Raw Normal View History

From a68f62ba53f654033c00f0478db7d30aa3856d53 Mon Sep 17 00:00:00 2001
From: Boondorl <59555366+Boondorl@users.noreply.github.com>
Date: Fri, 20 Jan 2023 16:09:20 -0500
Subject: [PATCH 22/51] Fixed global TerrainDef array not being exported
correctly
---
src/scripting/thingdef_data.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/scripting/thingdef_data.cpp b/src/scripting/thingdef_data.cpp
index 890637a37..acc039c5a 100644
--- a/src/scripting/thingdef_data.cpp
+++ b/src/scripting/thingdef_data.cpp
@@ -720,6 +720,10 @@ void InitThingdef()
teamstruct->Size = sizeof(FTeam);
teamstruct->Align = alignof(FTeam);
+ auto terraindefstruct = NewStruct("TerrainDef", nullptr, true);
+ terraindefstruct->Size = sizeof(FTerrainDef);
+ terraindefstruct->Align = alignof(FTerrainDef);
+
PStruct *pstruct = NewStruct("PlayerInfo", nullptr, true);
pstruct->Size = sizeof(player_t);
pstruct->Align = alignof(player_t);
--
2.39.3