fix ip for gs servers

This commit is contained in:
Pavel Stupnikov
2015-03-31 04:07:24 +03:00
parent f2a5775be4
commit f44fa8436e

View File

@@ -319,8 +319,9 @@ struct CommandsToolbarWindow : Window {
default:
if(widget >= CTW_NS0 && widget < CTW_NSEND){
char ip[16];
if(widget < CTW_NSX4) strecpy(ip, NOVAPOLIS_IPV4_PRIMARY, lastof(ip));
else strecpy(ip, NOVAPOLIS_IPV4_SECONDARY, lastof(ip));
// if(widget < CTW_NSX4)
strecpy(ip, NOVAPOLIS_IPV4_PRIMARY, lastof(ip));
// else strecpy(ip, NOVAPOLIS_IPV4_SECONDARY, lastof(ip));
NetworkClientConnectGame(NetworkAddress(ip, (3980 + widget - CTW_NS0)), COMPANY_SPECTATOR);
}