refacor: change debug message
This commit is contained in:
@@ -66,7 +66,7 @@ bool World::loadMapFromFile(const std::string& fileName) {
|
||||
std::cerr << "Failed to load map from file " << fileName << " !\n";
|
||||
}
|
||||
|
||||
std::cout << "File size : " << buffer.GetSize() << std::endl;
|
||||
std::cout << "Read file : " << fileName << " (File size : " << buffer.GetSize() << ")" << std::endl;
|
||||
|
||||
DataBuffer mapHeaderPacketBuffer = utils::Decompress(buffer);
|
||||
DataBuffer mapDataPacketBuffer = utils::Decompress(buffer);
|
||||
@@ -137,7 +137,7 @@ bool World::loadMapFromFile(const std::string& fileName) {
|
||||
getRedTeam().getSpawn().y = 13;
|
||||
getRedTeam().getSpawn().direction = Direction::PositiveY;
|
||||
|
||||
m_SpawnColorPalette[(uint)TeamColor::Red] = { 255, 0, 0 };
|
||||
m_SpawnColorPalette[(unsigned int)TeamColor::Red] = { 255, 0, 0 };
|
||||
|
||||
//Chunks
|
||||
|
||||
@@ -276,7 +276,7 @@ bool World::loadMapFromFile(const std::string& fileName) {
|
||||
getBlueTeam().getSpawn().y = 13;
|
||||
getBlueTeam().getSpawn().direction = Direction::PositiveY;
|
||||
|
||||
m_SpawnColorPalette[(uint)TeamColor::Blue] = { 0, 0, 255 };
|
||||
m_SpawnColorPalette[(unsigned int)TeamColor::Blue] = { 0, 0, 255 };
|
||||
|
||||
Chunk chunk01;
|
||||
chunk01.palette = { 0, 1, 2, 3, 4, 7, 8 };
|
||||
@@ -299,7 +299,7 @@ bool World::loadMapFromFile(const std::string& fileName) {
|
||||
m_Chunks.insert({ {3, 0}, std::make_shared<Chunk>(chunk11) });
|
||||
m_Chunks.insert({ {3, 1}, std::make_shared<Chunk>(chunk21) });
|
||||
|
||||
saveMap("tdmap.tdmap");
|
||||
return saveMap("tdmap_linux.tdmap");
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user