mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Make client compile
This commit is contained in:
parent
66776503c4
commit
d4c0f31b32
|
@ -944,7 +944,7 @@ void CClient::ProcessConnlessPacket(CNetChunk *pPacket)
|
|||
{
|
||||
NETADDR Addr;
|
||||
|
||||
static char IPV4Mapping[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
|
||||
static unsigned char IPV4Mapping[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
|
||||
|
||||
// copy address
|
||||
if(!mem_comp(IPV4Mapping, pAddrs[i].m_aIp, sizeof(IPV4Mapping)))
|
||||
|
|
|
@ -57,6 +57,15 @@ float VelocityRamp(float Value, float Start, float Range, float Curvature)
|
|||
return 1.0f/powf(Curvature, (Value-Start)/Range);
|
||||
}
|
||||
|
||||
void CCharacterCore::Init(CWorldCore *pWorld, CCollision *pCollision, CTeamsCore* pTeams)
|
||||
{
|
||||
m_pWorld = pWorld;
|
||||
m_pCollision = pCollision;
|
||||
|
||||
m_pTeams = pTeams;
|
||||
m_Id = -1;
|
||||
}
|
||||
|
||||
void CCharacterCore::Init(CWorldCore *pWorld, CCollision *pCollision, CTeamsCore* pTeams, std::map<int, std::vector<vec2> > pTeleOuts)
|
||||
{
|
||||
m_pWorld = pWorld;
|
||||
|
|
|
@ -207,6 +207,7 @@ public:
|
|||
|
||||
int m_TriggeredEvents;
|
||||
|
||||
void Init(CWorldCore *pWorld, CCollision *pCollision, CTeamsCore* pTeams);
|
||||
void Init(CWorldCore *pWorld, CCollision *pCollision, CTeamsCore* pTeams, std::map<int, std::vector<vec2> > pTeleOuts);
|
||||
void Reset();
|
||||
void Tick(bool UseInput);
|
||||
|
|
Loading…
Reference in a new issue