mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-18 07:22:03 +00:00
Rename splitscreen member to something more meaningful
This commit is contained in:
parent
1785adffc2
commit
0eb30bceb7
6 changed files with 13 additions and 13 deletions
|
@ -648,7 +648,7 @@ static inline void resynch_write_player(resynch_pak *rsp, const size_t i)
|
||||||
|
|
||||||
rsp->jointime = (tic_t)LONG(players[i].jointime);
|
rsp->jointime = (tic_t)LONG(players[i].jointime);
|
||||||
|
|
||||||
rsp->splitscreen = players[i].splitscreen;
|
rsp->splitscreenindex = players[i].splitscreenindex;
|
||||||
|
|
||||||
rsp->hasmo = false;
|
rsp->hasmo = false;
|
||||||
//Transfer important mo information if the player has a body.
|
//Transfer important mo information if the player has a body.
|
||||||
|
@ -785,7 +785,7 @@ static void resynch_read_player(resynch_pak *rsp)
|
||||||
|
|
||||||
players[i].jointime = (tic_t)LONG(rsp->jointime);
|
players[i].jointime = (tic_t)LONG(rsp->jointime);
|
||||||
|
|
||||||
players[i].splitscreen = rsp->splitscreen;
|
players[i].splitscreenindex = rsp->splitscreenindex;
|
||||||
|
|
||||||
//We get a packet for each player in game.
|
//We get a packet for each player in game.
|
||||||
if (!playeringame[i])
|
if (!playeringame[i])
|
||||||
|
@ -3320,7 +3320,7 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum)
|
||||||
addedtogame = true;
|
addedtogame = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
players[newplayernum].splitscreen = splitscreenplayer;
|
players[newplayernum].splitscreenindex = splitscreenplayer;
|
||||||
|
|
||||||
if (netgame)
|
if (netgame)
|
||||||
{
|
{
|
||||||
|
|
|
@ -283,7 +283,7 @@ typedef struct
|
||||||
|
|
||||||
tic_t jointime;
|
tic_t jointime;
|
||||||
|
|
||||||
UINT8 splitscreen;
|
UINT8 splitscreenindex;
|
||||||
|
|
||||||
//player->mo stuff
|
//player->mo stuff
|
||||||
UINT8 hasmo; // Boolean
|
UINT8 hasmo; // Boolean
|
||||||
|
|
|
@ -572,7 +572,7 @@ typedef struct player_s
|
||||||
|
|
||||||
tic_t jointime; // Timer when player joins game to change skin/color
|
tic_t jointime; // Timer when player joins game to change skin/color
|
||||||
|
|
||||||
UINT8 splitscreen;
|
UINT8 splitscreenindex;
|
||||||
#ifdef HWRENDER
|
#ifdef HWRENDER
|
||||||
fixed_t fovadd; // adjust FOV for hw rendering
|
fixed_t fovadd; // adjust FOV for hw rendering
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2357,7 +2357,7 @@ void G_PlayerReborn(INT32 player)
|
||||||
UINT8 skincolor;
|
UINT8 skincolor;
|
||||||
INT32 skin;
|
INT32 skin;
|
||||||
tic_t jointime;
|
tic_t jointime;
|
||||||
UINT8 psplitscreen;
|
UINT8 splitscreenindex;
|
||||||
boolean spectator;
|
boolean spectator;
|
||||||
INT16 bot;
|
INT16 bot;
|
||||||
SINT8 pity;
|
SINT8 pity;
|
||||||
|
@ -2381,7 +2381,7 @@ void G_PlayerReborn(INT32 player)
|
||||||
ctfteam = players[player].ctfteam;
|
ctfteam = players[player].ctfteam;
|
||||||
exiting = players[player].exiting;
|
exiting = players[player].exiting;
|
||||||
jointime = players[player].jointime;
|
jointime = players[player].jointime;
|
||||||
psplitscreen = players[player].splitscreen;
|
splitscreenindex = players[player].splitscreenindex;
|
||||||
spectator = players[player].spectator;
|
spectator = players[player].spectator;
|
||||||
pflags = (players[player].pflags & (PF_TIMEOVER|PF_FLIPCAM|PF_TAGIT|PF_TAGGED|PF_ANALOGMODE|PF_WANTSTOJOIN));
|
pflags = (players[player].pflags & (PF_TIMEOVER|PF_FLIPCAM|PF_TAGIT|PF_TAGGED|PF_ANALOGMODE|PF_WANTSTOJOIN));
|
||||||
|
|
||||||
|
@ -2478,7 +2478,7 @@ void G_PlayerReborn(INT32 player)
|
||||||
p->pflags = pflags;
|
p->pflags = pflags;
|
||||||
p->ctfteam = ctfteam;
|
p->ctfteam = ctfteam;
|
||||||
p->jointime = jointime;
|
p->jointime = jointime;
|
||||||
p->splitscreen = psplitscreen;
|
p->splitscreenindex = splitscreenindex;
|
||||||
p->spectator = spectator;
|
p->spectator = spectator;
|
||||||
|
|
||||||
// save player config truth reborn
|
// save player config truth reborn
|
||||||
|
|
|
@ -325,8 +325,8 @@ static int player_get(lua_State *L)
|
||||||
lua_pushinteger(L, plr->bot);
|
lua_pushinteger(L, plr->bot);
|
||||||
else if (fastcmp(field,"jointime"))
|
else if (fastcmp(field,"jointime"))
|
||||||
lua_pushinteger(L, plr->jointime);
|
lua_pushinteger(L, plr->jointime);
|
||||||
else if (fastcmp(field,"splitscreen"))
|
else if (fastcmp(field,"splitscreenindex"))
|
||||||
lua_pushinteger(L, plr->splitscreen);
|
lua_pushinteger(L, plr->splitscreenindex);
|
||||||
#ifdef HWRENDER
|
#ifdef HWRENDER
|
||||||
else if (fastcmp(field,"fovadd"))
|
else if (fastcmp(field,"fovadd"))
|
||||||
lua_pushfixed(L, plr->fovadd);
|
lua_pushfixed(L, plr->fovadd);
|
||||||
|
@ -615,7 +615,7 @@ static int player_set(lua_State *L)
|
||||||
return NOSET;
|
return NOSET;
|
||||||
else if (fastcmp(field,"jointime"))
|
else if (fastcmp(field,"jointime"))
|
||||||
plr->jointime = (tic_t)luaL_checkinteger(L, 3);
|
plr->jointime = (tic_t)luaL_checkinteger(L, 3);
|
||||||
else if (fastcmp(field,"splitscreen"))
|
else if (fastcmp(field,"splitscreenindex"))
|
||||||
return NOSET;
|
return NOSET;
|
||||||
#ifdef HWRENDER
|
#ifdef HWRENDER
|
||||||
else if (fastcmp(field,"fovadd"))
|
else if (fastcmp(field,"fovadd"))
|
||||||
|
|
|
@ -249,7 +249,7 @@ static void P_NetArchivePlayers(void)
|
||||||
|
|
||||||
WRITEUINT32(save_p, players[i].jointime);
|
WRITEUINT32(save_p, players[i].jointime);
|
||||||
|
|
||||||
WRITEUINT8(save_p, players[i].splitscreen);
|
WRITEUINT8(save_p, players[i].splitscreenindex);
|
||||||
|
|
||||||
WRITEUINT16(save_p, flags);
|
WRITEUINT16(save_p, flags);
|
||||||
|
|
||||||
|
@ -428,7 +428,7 @@ static void P_NetUnArchivePlayers(void)
|
||||||
|
|
||||||
players[i].jointime = READUINT32(save_p);
|
players[i].jointime = READUINT32(save_p);
|
||||||
|
|
||||||
players[i].splitscreen = READUINT8(save_p);
|
players[i].splitscreenindex = READUINT8(save_p);
|
||||||
|
|
||||||
flags = READUINT16(save_p);
|
flags = READUINT16(save_p);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue