- made the Skins array scripting friendly and exported it.
This commit is contained in:
parent
6a2525b737
commit
498da825a5
17 changed files with 136 additions and 118 deletions
|
|
@ -593,7 +593,7 @@ void DIntermissionScreenCast::Drawer ()
|
|||
if (!(mDefaults->flags4 & MF4_NOSKIN) &&
|
||||
mDefaults->SpawnState != NULL && caststate->sprite == mDefaults->SpawnState->sprite &&
|
||||
mClass->IsDescendantOf(RUNTIME_CLASS(APlayerPawn)) &&
|
||||
skins != NULL)
|
||||
Skins.Size() > 0)
|
||||
{
|
||||
// Only use the skin sprite if this class has not been removed from the
|
||||
// PlayerClasses list.
|
||||
|
|
@ -601,7 +601,7 @@ void DIntermissionScreenCast::Drawer ()
|
|||
{
|
||||
if (PlayerClasses[i].Type == mClass)
|
||||
{
|
||||
FPlayerSkin *skin = &skins[players[consoleplayer].userinfo.GetSkin()];
|
||||
FPlayerSkin *skin = &Skins[players[consoleplayer].userinfo.GetSkin()];
|
||||
castsprite = skin->sprite;
|
||||
|
||||
if (!(mDefaults->flags4 & MF4_NOSKIN))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue