mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Add player[].connected.
Patch from Striker. git-svn-id: https://svn.eduke32.com/eduke32@6453 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
385a3f9182
commit
fc0eabebb6
3 changed files with 3 additions and 0 deletions
|
@ -1040,6 +1040,7 @@ const memberlabel_t PlayerLabels[]=
|
|||
{ "autostep_sbw", PLAYER_AUTOSTEP_SBW, 0, 0 },
|
||||
{ "hudpal", PLAYER_HUDPAL, 0, 0 },
|
||||
{ "index", PLAYER_INDEX, 0, 0 },
|
||||
{ "connected", PLAYER_CONNECTED, 0, 0 },
|
||||
{ "", -1, 0, 0 } // END OF LIST
|
||||
};
|
||||
|
||||
|
|
|
@ -404,6 +404,7 @@ enum PlayerLabel_t
|
|||
PLAYER_AUTOSTEP_SBW,
|
||||
PLAYER_HUDPAL,
|
||||
PLAYER_INDEX,
|
||||
PLAYER_CONNECTED,
|
||||
PLAYER_END
|
||||
};
|
||||
|
||||
|
|
|
@ -564,6 +564,7 @@ int32_t __fastcall VM_GetPlayer(int32_t const playerNum, int32_t labelNum, int32
|
|||
case PLAYER_AUTOSTEP_SBW: labelNum = ps->autostep_sbw; break;
|
||||
case PLAYER_HUDPAL: labelNum = P_GetHudPal(ps); break;
|
||||
case PLAYER_INDEX: labelNum = playerNum; break;
|
||||
case PLAYER_CONNECTED: labelNum = g_player[playerNum].playerquitflag; break;
|
||||
default: labelNum = -1; break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue