mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-11 04:03:59 +00:00
Merge branch 'upstream-dev' into cleanup/nullptr-replacement
# Conflicts: # Minecraft.Client/Network/PlayerChunkMap.cpp # Minecraft.Client/Network/PlayerList.cpp # Minecraft.Client/Network/ServerChunkCache.cpp # Minecraft.Client/Platform/Common/Consoles_App.cpp # Minecraft.Client/Platform/Common/DLC/DLCManager.cpp # Minecraft.Client/Platform/Common/GameRules/LevelGenerationOptions.cpp # Minecraft.Client/Platform/Common/GameRules/LevelRuleset.cpp # Minecraft.Client/Platform/Common/Tutorial/Tutorial.cpp # Minecraft.Client/Platform/Common/Tutorial/TutorialTask.cpp # Minecraft.Client/Platform/Common/UI/IUIScene_CreativeMenu.cpp # Minecraft.Client/Platform/Common/UI/UIComponent_Panorama.cpp # Minecraft.Client/Platform/Common/UI/UIController.cpp # Minecraft.Client/Platform/Common/UI/UIController.h # Minecraft.Client/Platform/Extrax64Stubs.cpp # Minecraft.Client/Platform/Windows64/4JLibs/inc/4J_Input.h # Minecraft.Client/Platform/Windows64/4JLibs/inc/4J_Storage.h # Minecraft.Client/Player/EntityTracker.cpp # Minecraft.Client/Player/ServerPlayer.cpp # Minecraft.Client/Rendering/EntityRenderers/PlayerRenderer.cpp # Minecraft.Client/Textures/Packs/DLCTexturePack.cpp # Minecraft.Client/Textures/Stitching/StitchedTexture.cpp # Minecraft.Client/Textures/Stitching/TextureMap.cpp # Minecraft.Client/Textures/Textures.cpp # Minecraft.World/Blocks/NotGateTile.cpp # Minecraft.World/Blocks/PressurePlateTile.cpp # Minecraft.World/Blocks/TileEntities/PotionBrewing.cpp # Minecraft.World/Enchantments/EnchantmentHelper.cpp # Minecraft.World/Entities/HangingEntity.cpp # Minecraft.World/Entities/LeashFenceKnotEntity.cpp # Minecraft.World/Entities/LivingEntity.cpp # Minecraft.World/Entities/Mobs/Boat.cpp # Minecraft.World/Entities/Mobs/Minecart.cpp # Minecraft.World/Entities/Mobs/Witch.cpp # Minecraft.World/Entities/SyncedEntityData.cpp # Minecraft.World/Items/LeashItem.cpp # Minecraft.World/Items/PotionItem.cpp # Minecraft.World/Level/BaseMobSpawner.cpp # Minecraft.World/Level/CustomLevelSource.cpp # Minecraft.World/Level/Level.cpp # Minecraft.World/Level/Storage/DirectoryLevelStorage.cpp # Minecraft.World/Level/Storage/McRegionLevelStorage.cpp # Minecraft.World/Level/Storage/RegionFileCache.cpp # Minecraft.World/Player/Player.cpp # Minecraft.World/WorldGen/Biomes/BiomeCache.cpp # Minecraft.World/WorldGen/Features/RandomScatteredLargeFeature.cpp # Minecraft.World/WorldGen/Layers/BiomeOverrideLayer.cpp
This commit is contained in:
@@ -186,7 +186,7 @@ bool CGameNetworkManager::StartNetworkGame(Minecraft* minecraft,
|
||||
DWORD bytesRead,
|
||||
dwFileSize = GetFileSize(fileHandle, nullptr);
|
||||
PBYTE pbData = (PBYTE) new BYTE[dwFileSize];
|
||||
BOOL bSuccess =
|
||||
bool bSuccess =
|
||||
ReadFile(fileHandle, pbData, dwFileSize,
|
||||
&bytesRead, nullptr);
|
||||
if (bSuccess == FALSE) {
|
||||
@@ -444,7 +444,7 @@ bool CGameNetworkManager::StartNetworkGame(Minecraft* minecraft,
|
||||
do {
|
||||
// We need to keep ticking the connections for players that
|
||||
// already logged in
|
||||
for (AUTO_VAR(it, createdConnections.begin());
|
||||
for (auto it = createdConnections.begin();
|
||||
it < createdConnections.end(); ++it) {
|
||||
(*it)->tick();
|
||||
}
|
||||
@@ -482,8 +482,8 @@ bool CGameNetworkManager::StartNetworkGame(Minecraft* minecraft,
|
||||
idx, CONTEXT_PRESENCE_MULTIPLAYER, false);
|
||||
} else {
|
||||
connection->close();
|
||||
AUTO_VAR(it, find(createdConnections.begin(),
|
||||
createdConnections.end(), connection));
|
||||
auto it = find(createdConnections.begin(),
|
||||
createdConnections.end(), connection);
|
||||
if (it != createdConnections.end())
|
||||
createdConnections.erase(it);
|
||||
}
|
||||
@@ -497,7 +497,7 @@ bool CGameNetworkManager::StartNetworkGame(Minecraft* minecraft,
|
||||
}
|
||||
|
||||
if (g_NetworkManager.IsLeavingGame() || !IsInSession()) {
|
||||
for (AUTO_VAR(it, createdConnections.begin());
|
||||
for (auto it = createdConnections.begin();
|
||||
it < createdConnections.end(); ++it) {
|
||||
(*it)->close();
|
||||
}
|
||||
@@ -940,7 +940,7 @@ int CGameNetworkManager::ChangeSessionTypeThreadProc(void* lpParam) {
|
||||
// them being removed from the server when removed from the session
|
||||
if (pServer != nullptr) {
|
||||
PlayerList* players = pServer->getPlayers();
|
||||
for (AUTO_VAR(it, players->players.begin());
|
||||
for (auto it = players->players.begin();
|
||||
it < players->players.end(); ++it) {
|
||||
std::shared_ptr<ServerPlayer> servPlayer = *it;
|
||||
if (servPlayer->connection->isLocal() &&
|
||||
@@ -1005,7 +1005,7 @@ int CGameNetworkManager::ChangeSessionTypeThreadProc(void* lpParam) {
|
||||
pMinecraft->localplayers[index]->getXuid();
|
||||
|
||||
PlayerList* players = pServer->getPlayers();
|
||||
for (AUTO_VAR(it, players->players.begin());
|
||||
for (auto it = players->players.begin();
|
||||
it < players->players.end(); ++it) {
|
||||
std::shared_ptr<ServerPlayer> servPlayer = *it;
|
||||
if (servPlayer->getXuid() == localPlayerXuid) {
|
||||
|
||||
Reference in New Issue
Block a user