diff --git a/src/main_dedicated.cpp b/src/main_dedicated.cpp index 9c0e812..37ce2d0 100755 --- a/src/main_dedicated.cpp +++ b/src/main_dedicated.cpp @@ -76,6 +76,7 @@ int main(int numArguments, char* pszArgs[]) { //pthread_yield(); sleepMs(20); } + ((MAIN_CLASS*)g_app)->level->saveLevelData(); delete app; appContext.platform->finish(); diff --git a/src/network/ClientSideNetworkHandler.cpp b/src/network/ClientSideNetworkHandler.cpp index f988fdd..9c3a6b5 100755 --- a/src/network/ClientSideNetworkHandler.cpp +++ b/src/network/ClientSideNetworkHandler.cpp @@ -163,7 +163,7 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& source, StartGam // @todo @note i think its trash // we can put it directly to selectLevel? if (packet->chunkCacheWidth != 0) { - printf("lol \n"); + printf("lol \n"); LevelConstants::CHUNK_CACHE_WIDTH = packet->chunkCacheWidth; LevelConstants::LEVEL_WIDTH = LevelConstants::CHUNK_CACHE_WIDTH * LevelConstants::CHUNK_WIDTH; LevelConstants::LEVEL_DEPTH = LevelConstants::CHUNK_CACHE_WIDTH * LevelConstants::CHUNK_DEPTH; diff --git a/src/network/ServerSideNetworkHandler.cpp b/src/network/ServerSideNetworkHandler.cpp index e7e10fb..b184d8b 100755 --- a/src/network/ServerSideNetworkHandler.cpp +++ b/src/network/ServerSideNetworkHandler.cpp @@ -74,11 +74,11 @@ void ServerSideNetworkHandler::tileChanged(int x, int y, int z) Packet* ServerSideNetworkHandler::getAddPacketFromEntity( Entity* entity ) { if (entity->isMob() && !entity->isPlayer()) { //@fix: This code is duplicated. See if it can be unified. - if (minecraft->player) { + // if (minecraft->player) { // I guess this should always be true, but it crashed somewhere in this // function once and I only see this one as a potential problem return new AddMobPacket((Mob*)entity); - } + // } } else if (entity->isPlayer()) {