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

@ -296,8 +296,8 @@ bool FCajunMaster::SpawnBot (const char *name, int color)
thebot->inuse = BOTINUSE_Waiting;
Net_WriteByte (DEM_ADDBOT);
Net_WriteByte (botshift);
Net_WriteInt8 (DEM_ADDBOT);
Net_WriteInt8 (botshift);
{
//Set color.
FString concat = thebot->Info;
@ -311,23 +311,23 @@ bool FCajunMaster::SpawnBot (const char *name, int color)
}
Net_WriteString (concat.GetChars());
}
Net_WriteByte(thebot->skill.aiming);
Net_WriteByte(thebot->skill.perfection);
Net_WriteByte(thebot->skill.reaction);
Net_WriteByte(thebot->skill.isp);
Net_WriteInt8(thebot->skill.aiming);
Net_WriteInt8(thebot->skill.perfection);
Net_WriteInt8(thebot->skill.reaction);
Net_WriteInt8(thebot->skill.isp);
return true;
}
void FCajunMaster::TryAddBot (FLevelLocals *Level, uint8_t **stream, int player)
{
int botshift = ReadByte (stream);
int botshift = ReadInt8 (stream);
char *info = ReadString (stream);
botskill_t skill;
skill.aiming = ReadByte (stream);
skill.perfection = ReadByte (stream);
skill.reaction = ReadByte (stream);
skill.isp = ReadByte (stream);
skill.aiming = ReadInt8 (stream);
skill.perfection = ReadInt8 (stream);
skill.reaction = ReadInt8 (stream);
skill.isp = ReadInt8 (stream);
botinfo_t *thebot = NULL;