summaryrefslogtreecommitdiff
path: root/src/client.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-15 18:35:48 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-15 18:35:48 +0000
commitb84b59153c587248ca8a6a94a6d93977e851233f (patch)
treee13b33f09ee6ac130bb6045626618b1c5fc4d787 /src/client.c
parent6038f9434f1eb40caf7992ece9a3972e95a9fc11 (diff)
- moznost skompilovat public server bez GUI ( pomocou Makefile-publicServer )
port sa nastavuje ako ./publicserver --port <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
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c10
1 files changed, 5 insertions, 5 deletions
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();
}
}