fixed C++11-related warnings
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6853 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -336,7 +336,7 @@ void servermsinit(const char *master, const char *ip, int infoport, bool listen)
|
||||
|
||||
if(listen)
|
||||
{
|
||||
ENetAddress address = { ENET_HOST_ANY, infoport };
|
||||
ENetAddress address = { ENET_HOST_ANY, (enet_uint16)infoport };
|
||||
if(*ip)
|
||||
{
|
||||
if(enet_address_set_host(&address, ip)<0) logline(ACLOG_WARNING, "server ip not resolved");
|
||||
|
||||
Reference in New Issue
Block a user