- Fixed various instances of unused variables, accessing arrays out of bounds, initialization of non-primitive members in constructor's body, dead code, passing parameters by value instead of reference, usage of uninitialized variables, as reported by cppcheck.
This commit is contained in:
parent
8e1b1aa201
commit
322742d4b1
28 changed files with 72 additions and 92 deletions
|
|
@ -238,7 +238,7 @@ void PacketSend (void)
|
|||
else
|
||||
{
|
||||
// Printf("send %d\n", doomcom.datalength);
|
||||
c = sendto(mysocket, (char *)doomcom.data, doomcom.datalength,
|
||||
/*c = */sendto(mysocket, (char *)doomcom.data, doomcom.datalength,
|
||||
0, (sockaddr *)&sendaddress[doomcom.remotenode],
|
||||
sizeof(sendaddress[doomcom.remotenode]));
|
||||
}
|
||||
|
|
@ -800,7 +800,6 @@ bool Guest_WaitForOthers (void *userdata)
|
|||
{
|
||||
int node;
|
||||
|
||||
packet.NumNodes = packet.NumNodes;
|
||||
doomcom.numnodes = packet.NumNodes + 2;
|
||||
sendplayer[0] = packet.ConsoleNum; // My player number
|
||||
doomcom.consoleplayer = packet.ConsoleNum;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue