Renamed Networking Functions

New names more appropriately match the size of the value they write to/read from the stream.
This commit is contained in:
Boondorl 2024-01-05 14:38:33 -05:00 committed by Christoph Oelckers
commit a8e350aed8
25 changed files with 368 additions and 368 deletions

View file

@ -1883,8 +1883,8 @@ CCMD (kill)
if (CheckCheatmode ())
return;
Net_WriteByte (DEM_GENERICCHEAT);
Net_WriteByte (CHT_MASSACRE);
Net_WriteInt8 (DEM_GENERICCHEAT);
Net_WriteInt8 (CHT_MASSACRE);
}
else if (!stricmp (argv[1], "baddies"))
{
@ -1892,12 +1892,12 @@ CCMD (kill)
if (CheckCheatmode ())
return;
Net_WriteByte (DEM_GENERICCHEAT);
Net_WriteByte (CHT_MASSACRE2);
Net_WriteInt8 (DEM_GENERICCHEAT);
Net_WriteInt8 (CHT_MASSACRE2);
}
else
{
Net_WriteByte (DEM_KILLCLASSCHEAT);
Net_WriteInt8 (DEM_KILLCLASSCHEAT);
Net_WriteString (argv[1]);
}
}
@ -1908,7 +1908,7 @@ CCMD (kill)
return;
// Kill the player
Net_WriteByte (DEM_SUICIDE);
Net_WriteInt8 (DEM_SUICIDE);
}
C_HideConsole ();
}
@ -1920,7 +1920,7 @@ CCMD(remove)
if (CheckCheatmode())
return;
Net_WriteByte(DEM_REMOVE);
Net_WriteInt8(DEM_REMOVE);
Net_WriteString(argv[1]);
C_HideConsole();
}