diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-06-12 19:27:11 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-06-12 19:27:11 +0000 |
| commit | 652ce49bba44c885da4891bcae5fb650ef132a73 (patch) | |
| tree | 227a6f37a77f4b907e457b9163a0e36a0d9af1ed /src/proto.c | |
| parent | 9751218f594526982877332d6ca0fa90b67bbb7b (diff) | |
- moduly pouzivaju space_t
- drobne upravy
git-svn-id: http://opensvn.csie.org/tuxanci_ng@64 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/proto.c')
| -rw-r--r-- | src/proto.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 !" ); |