summaryrefslogtreecommitdiff
path: root/src/base/proto.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-18 19:19:10 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-18 19:19:10 +0000
commit8b93dd8dac51e28bb25ad341f594d21a955c3adb (patch)
treee04e9ea1d2d9b57c77617614283fc8756c96d53c /src/base/proto.c
parenta5a03e684b5ed3e8781ce30e5ffd4f73b59c3e97 (diff)
- 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
Diffstat (limited to 'src/base/proto.c')
-rw-r--r--src/base/proto.c17
1 files changed, 0 insertions, 17 deletions
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;