From 652ce49bba44c885da4891bcae5fb650ef132a73 Mon Sep 17 00:00:00 2001 From: oroborus Date: Thu, 12 Jun 2008 19:27:11 +0000 Subject: - moduly pouzivaju space_t - drobne upravy git-svn-id: http://opensvn.csie.org/tuxanci_ng@64 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/proto.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/proto.c') diff --git a/src/proto.c b/src/proto.c index 062693e..cffde8d 100644 --- a/src/proto.c +++ b/src/proto.c @@ -52,6 +52,7 @@ static void proto_send(int type, client_t *client, char *msg) sendAllClientBut(msg, client); break; case PROTO_SEND_ALL_SEES_TUX : +#ifndef PUBLIC_SERVER if( client != NULL ) { sendAllClientSeesTux(msg, client->tux); @@ -60,6 +61,10 @@ static void proto_send(int type, client_t *client, char *msg) { sendAllClientSeesTux(msg, getControlTux(TUX_CONTROL_KEYBOARD_RIGHT)); } +#endif +#ifdef PUBLIC_SERVER + sendAllClientSeesTux(msg, client->tux); +#endif break; default : assert( ! "Premenna type ma zlu hodnotu !" ); @@ -86,6 +91,7 @@ static void proto_check(int type, client_t *client, char *msg, int id) addMsgAllClientBut(msg, client, id); break; case PROTO_SEND_ALL_SEES_TUX : +#ifndef PUBLIC_SERVER if( client != NULL ) { addMsgAllClientSeesTux(msg, client->tux, id); @@ -94,6 +100,10 @@ static void proto_check(int type, client_t *client, char *msg, int id) { addMsgAllClientSeesTux(msg, getControlTux(TUX_CONTROL_KEYBOARD_RIGHT), id); } +#endif +#ifdef PUBLIC_SERVER + addMsgAllClientSeesTux(msg, client->tux, id); +#endif break; default : assert( ! "Premenna type ma zlu hodnotu !" ); -- cgit v1.2.3