From b84b59153c587248ca8a6a94a6d93977e851233f Mon Sep 17 00:00:00 2001 From: oroborus Date: Sat, 15 Mar 2008 18:35:48 +0000 Subject: - moznost skompilovat public server bez GUI ( pomocou Makefile-publicServer ) port sa nastavuje ako ./publicserver --port - jeto iba prvotna verzia treba to este odladit a zostabilnit git-svn-id: http://opensvn.csie.org/tuxanci_ng@18 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/client.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client.c') diff --git a/src/client.c b/src/client.c index 5a96b00..4992b40 100644 --- a/src/client.c +++ b/src/client.c @@ -18,12 +18,12 @@ static int protocolType; static sock_tcp_t *sock_server_tcp; static sock_udp_t *sock_server_udp; static buffer_t *clientBuffer; -static Uint32 lastPing; +static my_time_t lastPing; static void initClient() { clientBuffer = newBuffer( LIMIT_BUFFER ); - lastPing = SDL_GetTicks(); + lastPing = getMyTime(); proto_send_hello_client(); } @@ -176,14 +176,14 @@ void selectClientTcpSocket() void eventPingServer() { - Uint32 currentTime; + my_time_t currentTime; - currentTime = SDL_GetTicks(); + currentTime = getMyTime(); if( currentTime - lastPing > CLIENT_TIMEOUT ) { proto_send_ping_client(); - lastPing = SDL_GetTicks(); + lastPing = getMyTime(); } } -- cgit v1.2.3