mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-05 06:34:25 +00:00
Remove WinAPI small-id types from XUI player flows
This commit is contained in:
@@ -300,7 +300,7 @@ HRESULT CScene_InGamePlayerOptions::OnNotifyPressEx(HXUIOBJ hObjPressed, XUINoti
|
||||
|
||||
if( hObjPressed == m_buttonKick )
|
||||
{
|
||||
BYTE *smallId = new BYTE();
|
||||
std::uint8_t *smallId = new std::uint8_t();
|
||||
*smallId = m_networkSmallId;
|
||||
unsigned int uiIDA[2];
|
||||
uiIDA[0]=IDS_CONFIRM_OK;
|
||||
@@ -330,7 +330,7 @@ HRESULT CScene_InGamePlayerOptions::OnControlNavigate(XUIMessageControlNavigate
|
||||
|
||||
int CScene_InGamePlayerOptions::KickPlayerReturned(void *pParam,int iPad,C4JStorage::EMessageResult result)
|
||||
{
|
||||
BYTE smallId = *(BYTE *)pParam;
|
||||
std::uint8_t smallId = *static_cast<std::uint8_t *>(pParam);
|
||||
delete pParam;
|
||||
|
||||
if(result==C4JStorage::EMessage_ResultAccept)
|
||||
@@ -496,4 +496,4 @@ void CScene_InGamePlayerOptions::resetCheatCheckboxes()
|
||||
m_checkboxes[eControl_CheatTeleport].SetCheck( isModerator
|
||||
&& (Player::getPlayerGamePrivilege(m_playerPrivileges, Player::ePlayerGamePrivilege_CanTeleport) != 0) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user