Merge branch 'DDRace64' of github.com:def-/ddnet into DDRace64

This commit is contained in:
def 2014-12-31 14:49:44 +01:00
commit 592ab36c7e
3 changed files with 5 additions and 5 deletions

View file

@ -299,7 +299,7 @@ class CTextRender : public IEngineTextRender
int SlotSize = SlotW*SlotH;
int x = 1;
int y = 1;
int px, py;
unsigned int px, py;
FT_Set_Pixel_Sizes(pFont->m_FtFace, 0, pSizeData->m_FontSize);
@ -340,8 +340,8 @@ class CTextRender : public IEngineTextRender
}
}
if(0) for(py = 0; py < SlotW; py++)
for(px = 0; px < SlotH; px++)
if(0) for(py = 0; (int)py < SlotW; py++)
for(px = 0; (int)px < SlotH; px++)
ms_aGlyphData[py*SlotW+px] = 255;
// upload the glyph

View file

@ -117,7 +117,7 @@ void BuildPackets()
}
else
{
static char IPV4Mapping[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
static char IPV4Mapping[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (char)0xFF, (char)0xFF };
mem_copy(m_aPackets[m_NumPackets-1].m_Data.m_aServers[PacketIndex].m_aIp, IPV4Mapping, sizeof(IPV4Mapping));
m_aPackets[m_NumPackets-1].m_Data.m_aServers[PacketIndex].m_aIp[12] = pCurrent->m_Address.ip[0];

View file

@ -42,7 +42,7 @@ static int m_ConfigInterval = 10; // seconds between different pingconfigs
static int m_ConfigLog = 0;
static int m_ConfigReorder = 0;
void Run(int Port, NETADDR Dest)
void Run(unsigned short Port, NETADDR Dest)
{
NETADDR Src = {NETTYPE_IPV4, {0,0,0,0}, Port};
NETSOCKET Socket = net_udp_create(Src);