mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- fixed PlayerInfo.FindMostRecentWeapon
returning multiple values from a subfunction is currently not working so this has to add an indirection.
This commit is contained in:
parent
ebaabcfb4f
commit
1deedd5671
1 changed files with 6 additions and 1 deletions
|
@ -1924,7 +1924,12 @@ class PlayerPawn : Actor native
|
|||
let ReadyWeapon = player.ReadyWeapon;
|
||||
if (player.PendingWeapon != WP_NOCHANGE)
|
||||
{
|
||||
return player.weapons.LocateWeapon(player.PendingWeapon.GetClass());
|
||||
// Workaround for the current inability
|
||||
bool found;
|
||||
int slot;
|
||||
int index;
|
||||
[found, slot, index] = player.weapons.LocateWeapon(player.PendingWeapon.GetClass());
|
||||
return found, slot, index;
|
||||
}
|
||||
else if (ReadyWeapon != null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue