From 20ecf36f401adad01cc5ff67e411c596a8b523d5 Mon Sep 17 00:00:00 2001 From: oroborus Date: Sat, 22 Mar 2008 22:13:43 +0000 Subject: - oprava chyby, client ktory checkuje status moze zhodit server - oprava chyby s minami, v sietovom multiplayeri - server si kontroluje cas kedy naposledy komunikval s clientom po kazdom prijati datagramu, nie iba po kazdom datagrame s pingom - bod sa pripocitava aj tuxovy, ktory dal do areny minu a vybuch s miny odpalenej strielov zabyje niekho ineho ako je on - drobne upravy v kode git-svn-id: http://opensvn.csie.org/tuxanci_ng@32 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/proto.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/proto.c') diff --git a/src/proto.c b/src/proto.c index 4372217..974f84c 100644 --- a/src/proto.c +++ b/src/proto.c @@ -219,9 +219,10 @@ void proto_recv_event_server(client_t *client, char *msg) sscanf(msg, "%s %d", cmd, &action); + proto_send_event_server(PROTO_SEND_BUT, client, client->tux, action); + actionTux(client->tux, action); - proto_send_event_server(PROTO_SEND_BUT, client, client->tux, action); } void proto_send_newtux_server(int type, client_t *client, tux_t *tux) @@ -517,12 +518,6 @@ void proto_send_ping_client() void proto_recv_ping_server(client_t *client, char *msg) { - assert( msg != NULL ); - assert( client != NULL ); - -#if defined SUPPORT_NET_UNIX_UDP || defined SUPPORT_NET_SDL_UDP - client->lastPing = getMyTime(); -#endif } #ifndef BUBLIC_SERVER -- cgit v1.2.3