From 8b93dd8dac51e28bb25ad341f594d21a955c3adb Mon Sep 17 00:00:00 2001 From: oroborus Date: Fri, 18 Jul 2008 19:19:10 +0000 Subject: - bezpecnejsie prepiannie screenov ( uz sa to nedeje v event() daneho screenu aj ked to on vyvolal ) - do laveho horneho rohu s nevypisuju blbiny - moduly pouzivaju funkcie actionSpace a actionSpaceFromLocation - dane funkcie sa pouzivaju aj pri vykreslovani objektov - btw. je jedno kolko zeru tuxanci top, na kerneli-2.6.25.* to zralo X a na kerneli 2.6.26 to zere 2*X git-svn-id: http://opensvn.csie.org/tuxanci_ng@159 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/base/proto.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/base/proto.c') diff --git a/src/base/proto.c b/src/base/proto.c index e42e4d9..453398f 100644 --- a/src/base/proto.c +++ b/src/base/proto.c @@ -386,13 +386,6 @@ void proto_send_newtux_server(int type, client_t *client, tux_t *tux) getTuxProportion(tux, &x, &y, NULL, NULL); } - if( type == PROTO_SEND_ONE && - tux->bonus == BONUS_HIDDEN && - client->tux == tux ) - { - getTuxProportion(tux, &x, &y, NULL, NULL); - } - sprintf(msg, "newtux %d %d %d %d %d %d %d %s %d %d %d %d %d %d %d %d %d %d %d\n", tux->id ,x, y, tux->status, tux->position ,tux->frame, tux->score, tux->name, tux->gun, tux->bonus, tux->shot[GUN_SIMPLE], tux->shot[GUN_DUAL_SIMPLE], @@ -436,10 +429,6 @@ void proto_recv_newtux_client(char *msg) if( tux == NULL ) { - char term_msg[STR_SIZE]; - sprintf(term_msg, "connect new client( id = %d)\n", id); - appendTextInTerm(term_msg); - tux = newTux(); replaceTuxID(tux, id); tux->control = TUX_CONTROL_NET; @@ -549,12 +538,6 @@ void proto_recv_del_client(char *msg) if( tux != NULL ) { - char term_msg[STR_SIZE]; - - //printf("delete tux..\n"); - sprintf(term_msg, "tux with id %d is disconnect\n", tux->id); - appendTextInTerm(term_msg); - delFromRadar(id); delObjectFromSpaceWithObject(getCurrentArena()->spaceTux, tux, destroyTux); return; -- cgit v1.2.3