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:
hendricks266 2017-09-27 02:30:24 +00:00
parent 385a3f9182
commit fc0eabebb6
3 changed files with 3 additions and 0 deletions

View file

@ -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
};

View file

@ -404,6 +404,7 @@ enum PlayerLabel_t
PLAYER_AUTOSTEP_SBW,
PLAYER_HUDPAL,
PLAYER_INDEX,
PLAYER_CONNECTED,
PLAYER_END
};

View file

@ -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;
}