fix: add missing return statments

This commit is contained in:
2021-09-02 09:59:50 +02:00
parent 26f060b334
commit fe86bffc2e

View File

@@ -50,10 +50,13 @@ bool World::loadMap(const protocol::WorldBeginDataPacket* worldHeader){
getBlueTeam().getCastle() = worldHeader->getBlueCastle();
m_TilePalette = worldHeader->getTilePalette();
return true;
}
bool World::loadMap(const protocol::WorldDataPacket* worldData){
m_Chunks = worldData->getChunks();
return true;
}
bool World::loadMapFromFile(const std::string& fileName){
@@ -83,6 +86,8 @@ bool World::loadMapFromFile(const std::string& fileName){
loadMap(&headerPacket);
loadMap(&dataPacket);
return true;
#else
m_WalkablePalette = {102, 102, 153};