- do not use global variables to track state in the decal code.

Setups like this have caused problems in the past so best get rid of it.
This commit is contained in:
Christoph Oelckers 2018-12-29 11:48:28 +01:00
commit 3fbc55a8dd
4 changed files with 44 additions and 40 deletions

View file

@ -53,12 +53,12 @@
//
//===========================================================================
FString WeaponSection;
static FString WeaponSection;
TArray<FString> KeyConfWeapons;
FWeaponSlots *PlayingKeyConf;
static FWeaponSlots *PlayingKeyConf;
TArray<PClassActor *> Weapons_ntoh;
TMap<PClassActor *, int> Weapons_hton;
static TArray<PClassActor *> Weapons_ntoh;
static TMap<PClassActor *, int> Weapons_hton;
static int ntoh_cmp(const void *a, const void *b);