fix: add missing return statments
This commit is contained in:
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user