- did some more lightening on the PlayerPawn class. 4 more properties and one native member function have been handled.

This commit is contained in:
Christoph Oelckers 2019-01-03 10:06:45 +01:00
commit 9e5c5b68c5
11 changed files with 61 additions and 61 deletions

View file

@ -1013,14 +1013,8 @@ void R_InitSprites ()
auto basetype = ((APlayerPawn*)GetDefaultByType(PlayerClasses[i].Type));
Skins[i].Name = "Base";
if (basetype->Face == NAME_None)
{
Skins[i].Face = "STF";
}
else
{
Skins[i].Face = basetype->Face;
}
auto face = basetype->NameVar(NAME_Face);
Skins[i].Face = face == NAME_None? FName("STF") : face;
Skins[i].range0start = basetype->IntVar(NAME_ColorRangeStart);
Skins[i].range0end = basetype->IntVar(NAME_ColorRangeEnd);
Skins[i].Scale = basetype->Scale;