diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-22 22:13:43 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-22 22:13:43 +0000 |
| commit | 20ecf36f401adad01cc5ff67e411c596a8b523d5 (patch) | |
| tree | 846175c5b9027d576ab67daa2e28c50ddfc693d6 /src/proto.c | |
| parent | 114131bf71d7d4ec48c92a7bde8183442995940f (diff) | |
- 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
Diffstat (limited to 'src/proto.c')
| -rw-r--r-- | src/proto.c | 9 |
1 files changed, 2 insertions, 7 deletions
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 |