mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-15 01:32:07 +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:
@@ -35,7 +35,7 @@ void UseTileRuleDefinition::addAttribute(const std::wstring& attributeName,
|
||||
} else if (attributeName.compare(L"useCoords") == 0) {
|
||||
m_useCoords = _fromString<bool>(attributeValue);
|
||||
app.DebugPrintf("UseTileRule: Adding parameter useCoords=%s\n",
|
||||
m_useCoords ? "TRUE" : "FALSE");
|
||||
m_useCoords ? "true" : "false");
|
||||
} else if (attributeName.compare(L"x") == 0) {
|
||||
m_coordinates.x = _fromString<int>(attributeValue);
|
||||
app.DebugPrintf("UseTileRule: Adding parameter x=%d\n",
|
||||
@@ -65,7 +65,7 @@ bool UseTileRuleDefinition::onUseTile(GameRule* rule, int tileId, int x, int y,
|
||||
app.DebugPrintf(
|
||||
"Completed UseTileRule with info - t:%d, coords:%s, x:%d, "
|
||||
"y:%d, z:%d\n",
|
||||
m_tileId, m_useCoords ? "TRUE" : "FALSE", m_coordinates.x,
|
||||
m_tileId, m_useCoords ? "true" : "false", m_coordinates.x,
|
||||
m_coordinates.y, m_coordinates.z);
|
||||
|
||||
// Send a packet or some other announcement here
|
||||
|
||||
Reference in New Issue
Block a user