- code cleanup based on additional gcc warnings
This commit is contained in:
parent
94684c66a4
commit
33d87512b0
|
@ -2213,7 +2213,7 @@ bool NetworkMessageSynchNetworkGameDataStatus::receive(Socket* socket) {
|
|||
fromEndianHeader();
|
||||
// Here we loop possibly multiple times
|
||||
int packetLoopCount = 1;
|
||||
if(data.header.techCRCFileCount > NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount) {
|
||||
if(data.header.techCRCFileCount > (uint32)NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount) {
|
||||
packetLoopCount = (data.header.techCRCFileCount / NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount);
|
||||
if(data.header.techCRCFileCount % NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount > 0) {
|
||||
packetLoopCount++;
|
||||
|
@ -2258,7 +2258,7 @@ void NetworkMessageSynchNetworkGameDataStatus::send(Socket* socket) {
|
|||
if(totalFileCount > 0) {
|
||||
// Here we loop possibly multiple times
|
||||
int packetLoopCount = 1;
|
||||
if(totalFileCount > NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount) {
|
||||
if(totalFileCount > (uint32)NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount) {
|
||||
packetLoopCount = (totalFileCount / NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount);
|
||||
if(totalFileCount % NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount > 0) {
|
||||
packetLoopCount++;
|
||||
|
|
|
@ -1767,7 +1767,7 @@ void Map::saveGame(XmlNode *rootNode) const {
|
|||
exploredList += ",";
|
||||
}
|
||||
|
||||
for(unsigned int j = 0; j < GameConstants::maxPlayers; ++j) {
|
||||
for(unsigned int j = 0; j < (unsigned int)GameConstants::maxPlayers; ++j) {
|
||||
if(j > 0) {
|
||||
exploredList += "|";
|
||||
}
|
||||
|
@ -1779,7 +1779,7 @@ void Map::saveGame(XmlNode *rootNode) const {
|
|||
visibleList += ",";
|
||||
}
|
||||
|
||||
for(unsigned int j = 0; j < GameConstants::maxPlayers; ++j) {
|
||||
for(unsigned int j = 0; j < (unsigned int)GameConstants::maxPlayers; ++j) {
|
||||
if(j > 0) {
|
||||
visibleList += "|";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue