- did some more lightening on the PlayerPawn class. 4 more properties and one native member function have been handled.
This commit is contained in:
parent
8da1b5c1b0
commit
9e5c5b68c5
11 changed files with 61 additions and 61 deletions
|
|
@ -491,7 +491,7 @@ void FWeaponSlots::SendDifferences(int playernum, const FWeaponSlots &other)
|
|||
void FWeaponSlots::SetFromPlayer(PClassActor *type)
|
||||
{
|
||||
Clear();
|
||||
auto Slot = ((APlayerPawn*)GetDefaultByType(type))->Slot;
|
||||
auto Slot = &GetDefaultByType(type)->NameVar(NAME_Slot);
|
||||
for (int i = 0; i < NUM_WEAPON_SLOTS; ++i)
|
||||
{
|
||||
if (Slot[i] != NAME_None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue