idk?
This commit is contained in:
@@ -76,6 +76,7 @@ int main(int numArguments, char* pszArgs[]) {
|
|||||||
//pthread_yield();
|
//pthread_yield();
|
||||||
sleepMs(20);
|
sleepMs(20);
|
||||||
}
|
}
|
||||||
|
|
||||||
((MAIN_CLASS*)g_app)->level->saveLevelData();
|
((MAIN_CLASS*)g_app)->level->saveLevelData();
|
||||||
delete app;
|
delete app;
|
||||||
appContext.platform->finish();
|
appContext.platform->finish();
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& source, StartGam
|
|||||||
// @todo @note i think its trash
|
// @todo @note i think its trash
|
||||||
// we can put it directly to selectLevel?
|
// we can put it directly to selectLevel?
|
||||||
if (packet->chunkCacheWidth != 0) {
|
if (packet->chunkCacheWidth != 0) {
|
||||||
printf("lol \n");
|
printf("lol \n");
|
||||||
LevelConstants::CHUNK_CACHE_WIDTH = packet->chunkCacheWidth;
|
LevelConstants::CHUNK_CACHE_WIDTH = packet->chunkCacheWidth;
|
||||||
LevelConstants::LEVEL_WIDTH = LevelConstants::CHUNK_CACHE_WIDTH * LevelConstants::CHUNK_WIDTH;
|
LevelConstants::LEVEL_WIDTH = LevelConstants::CHUNK_CACHE_WIDTH * LevelConstants::CHUNK_WIDTH;
|
||||||
LevelConstants::LEVEL_DEPTH = LevelConstants::CHUNK_CACHE_WIDTH * LevelConstants::CHUNK_DEPTH;
|
LevelConstants::LEVEL_DEPTH = LevelConstants::CHUNK_CACHE_WIDTH * LevelConstants::CHUNK_DEPTH;
|
||||||
|
|||||||
@@ -74,11 +74,11 @@ void ServerSideNetworkHandler::tileChanged(int x, int y, int z)
|
|||||||
|
|
||||||
Packet* ServerSideNetworkHandler::getAddPacketFromEntity( Entity* entity ) {
|
Packet* ServerSideNetworkHandler::getAddPacketFromEntity( Entity* entity ) {
|
||||||
if (entity->isMob() && !entity->isPlayer()) { //@fix: This code is duplicated. See if it can be unified.
|
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
|
// 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
|
// function once and I only see this one as a potential problem
|
||||||
return new AddMobPacket((Mob*)entity);
|
return new AddMobPacket((Mob*)entity);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
else if (entity->isPlayer()) {
|
else if (entity->isPlayer()) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user