mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-04 08:26:33 +00:00
Replace remaining WinAPI types with standard C++ equivalents
DWORD→uint32_t, BYTE→uint8_t, HRESULT→int32_t, HANDLE→void*, UINT→uint32_t, INT→int32_t, WORD→uint16_t, LONG→int32_t, SHORT→int16_t, LONGLONG→int64_t, ULONG_PTR→uintptr_t, PBYTE→uint8_t*, LPWSTR/PWSTR→wchar_t*, FLOAT→float, CHAR→char, boolean→bool, CONST→const, TRUE→true, FALSE→false across 176 files (excluding vendor libs and Linux stubs).
This commit is contained in:
@@ -228,7 +228,7 @@ void PlayerList::placeNewPlayer(Connection* connection,
|
||||
level->getSeed(), player->gameMode->getGameModeForPlayer()->getId(),
|
||||
(uint8_t)level->dimension->id, (uint8_t)level->getMaxBuildHeight(),
|
||||
(uint8_t)getMaxPlayers(), level->difficulty,
|
||||
TelemetryManager->GetMultiplayerInstanceID(), (BYTE)playerIndex,
|
||||
TelemetryManager->GetMultiplayerInstanceID(), (uint8_t)playerIndex,
|
||||
level->useNewSeaLevel(), player->getAllPlayerGamePrivileges(),
|
||||
level->getLevelData()->getXZSize(),
|
||||
level->getLevelData()->getHellScale())));
|
||||
@@ -1032,7 +1032,7 @@ void PlayerList::tick() {
|
||||
INetworkPlayer* selectedPlayer =
|
||||
g_NetworkManager.GetPlayerBySmallId(smallId);
|
||||
if (selectedPlayer != nullptr) {
|
||||
if (selectedPlayer->IsLocal() != TRUE) {
|
||||
if (selectedPlayer->IsLocal() != true) {
|
||||
// #if 0
|
||||
PlayerUID xuid = selectedPlayer->GetUID();
|
||||
// Kick this player from the game
|
||||
@@ -1256,7 +1256,7 @@ bool PlayerList::meetsScoreRequirements(
|
||||
|
||||
// for (Map.Entry<String, Integer> requirement :
|
||||
// scoreRequirements.entrySet()) { String name = requirement.getKey();
|
||||
// boolean min = false;
|
||||
// bool min = false;
|
||||
|
||||
// if (name.endsWith("_min") && name.length() > 4) {
|
||||
// min = true;
|
||||
|
||||
Reference in New Issue
Block a user