mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-24 04:32:11 +00:00
Remove useless variable
This commit is contained in:
parent
5d5e2c78e4
commit
2bd2b728bf
3 changed files with 0 additions and 13 deletions
|
@ -1605,8 +1605,6 @@ void GetPackets(void)
|
||||||
{
|
{
|
||||||
SINT8 node; // The packet sender
|
SINT8 node; // The packet sender
|
||||||
|
|
||||||
player_joining = false;
|
|
||||||
|
|
||||||
while (HGetPacket())
|
while (HGetPacket())
|
||||||
{
|
{
|
||||||
node = (SINT8)doomcom->remotenode;
|
node = (SINT8)doomcom->remotenode;
|
||||||
|
@ -1793,13 +1791,6 @@ boolean TryRunTics(tic_t realtics)
|
||||||
hu_stopped = false;
|
hu_stopped = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player_joining)
|
|
||||||
{
|
|
||||||
if (realtics)
|
|
||||||
hu_stopped = true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ticking)
|
if (ticking)
|
||||||
{
|
{
|
||||||
if (advancedemo)
|
if (advancedemo)
|
||||||
|
|
|
@ -37,8 +37,6 @@ tic_t joindelay = 0;
|
||||||
// The actual timeout will be longer depending on the savegame length
|
// The actual timeout will be longer depending on the savegame length
|
||||||
char playeraddress[MAXPLAYERS][64];
|
char playeraddress[MAXPLAYERS][64];
|
||||||
|
|
||||||
UINT8 player_joining = false;
|
|
||||||
|
|
||||||
consvar_t cv_showjoinaddress = CVAR_INIT ("showjoinaddress", "Off", CV_SAVE|CV_NETVAR, CV_OnOff, NULL);
|
consvar_t cv_showjoinaddress = CVAR_INIT ("showjoinaddress", "Off", CV_SAVE|CV_NETVAR, CV_OnOff, NULL);
|
||||||
|
|
||||||
consvar_t cv_allownewplayer = CVAR_INIT ("allowjoin", "On", CV_SAVE|CV_NETVAR, CV_OnOff, NULL);
|
consvar_t cv_allownewplayer = CVAR_INIT ("allowjoin", "On", CV_SAVE|CV_NETVAR, CV_OnOff, NULL);
|
||||||
|
@ -475,7 +473,6 @@ void PT_ClientJoin(SINT8 node)
|
||||||
SV_AddPlayer(node, names[i]);
|
SV_AddPlayer(node, names[i]);
|
||||||
|
|
||||||
joindelay += cv_joindelay.value * TICRATE;
|
joindelay += cv_joindelay.value * TICRATE;
|
||||||
player_joining = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PT_AskInfoViaMS(SINT8 node)
|
void PT_AskInfoViaMS(SINT8 node)
|
||||||
|
|
|
@ -25,7 +25,6 @@ void PT_AskInfo(SINT8 node);
|
||||||
extern tic_t jointimeout;
|
extern tic_t jointimeout;
|
||||||
extern tic_t joindelay;
|
extern tic_t joindelay;
|
||||||
extern char playeraddress[MAXPLAYERS][64];
|
extern char playeraddress[MAXPLAYERS][64];
|
||||||
extern UINT8 player_joining;
|
|
||||||
extern consvar_t cv_showjoinaddress, cv_allownewplayer, cv_maxplayers, cv_joindelay, cv_rejointimeout;
|
extern consvar_t cv_showjoinaddress, cv_allownewplayer, cv_maxplayers, cv_joindelay, cv_rejointimeout;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue