- fixed: The BFG needs to get its default ammo usage from the DehInfo struct.

- fixed: State's fields need to be declared native.
This commit is contained in:
Christoph Oelckers 2016-11-25 01:33:04 +01:00
parent c25774e311
commit 11ac0c622b
4 changed files with 38 additions and 16 deletions

View file

@ -706,6 +706,11 @@ void InitThingdef()
PField *levelf = new PField("level", lstruct, VARF_Native | VARF_Static, (intptr_t)&level);
GlobalSymbols.AddSymbol(levelf);
// set up a variable for the DEH data
PStruct *dstruct = NewNativeStruct("DehInfo", nullptr);
PField *dehi = new PField("deh", dstruct, VARF_Native | VARF_Static, (intptr_t)&deh);
GlobalSymbols.AddSymbol(dehi);
// set up a variable for the global players array.
PStruct *pstruct = NewNativeStruct("PlayerInfo", nullptr);
pstruct->Size = sizeof(player_t);