mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
Remove WinAPI types from XUI teleport
This commit is contained in:
parent
3e7a72c9d3
commit
3e25aa58e5
|
|
@ -44,10 +44,10 @@ HRESULT CScene_Teleport::OnInit( XUIMessageInit* pInitData, BOOL& bHandled )
|
||||||
app.AdjustSplitscreenScene(m_hObj,&m_OriginalPosition,m_iPad);
|
app.AdjustSplitscreenScene(m_hObj,&m_OriginalPosition,m_iPad);
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD playerCount = g_NetworkManager.GetPlayerCount();
|
int playerCount = g_NetworkManager.GetPlayerCount();
|
||||||
|
|
||||||
m_playersCount = 0;
|
m_playersCount = 0;
|
||||||
for(DWORD i = 0; i < playerCount; ++i)
|
for(int i = 0; i < playerCount; ++i)
|
||||||
{
|
{
|
||||||
INetworkPlayer *player = g_NetworkManager.GetPlayerByIndex( i );
|
INetworkPlayer *player = g_NetworkManager.GetPlayerByIndex( i );
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
//using namespace std;
|
//using namespace std;
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
#include "../media/xuiscene_teleportmenu.h"
|
#include "../media/xuiscene_teleportmenu.h"
|
||||||
#include "XUI_CustomMessages.h"
|
#include "XUI_CustomMessages.h"
|
||||||
|
|
||||||
|
|
@ -60,5 +62,5 @@ private:
|
||||||
bool m_teleportToPlayer;
|
bool m_teleportToPlayer;
|
||||||
|
|
||||||
int m_playersCount;
|
int m_playersCount;
|
||||||
BYTE m_players[MINECRAFT_NET_MAX_PLAYERS]; // An array of QNet small-id's
|
std::uint8_t m_players[MINECRAFT_NET_MAX_PLAYERS]; // An array of QNet small-id's
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue