From 01d613a7ccf695090262c9e22c396251146f00bd Mon Sep 17 00:00:00 2001 From: oroborus Date: Wed, 19 Mar 2008 19:32:50 +0000 Subject: - upravy v kode git-svn-id: http://opensvn.csie.org/tuxanci_ng@27 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/tux.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/tux.c') diff --git a/src/tux.c b/src/tux.c index c8b80cc..2c9c6a0 100644 --- a/src/tux.c +++ b/src/tux.c @@ -324,7 +324,7 @@ static void timer_spawnTux(void *p) if( getNetTypeGame() == NET_GAME_TYPE_SERVER ) { - proto_send_newtux_server(NULL, tux); + proto_send_newtux_server(PROTO_SEND_ALL, NULL, tux); } } @@ -389,7 +389,7 @@ void eventTuxIsDead(tux_t *tux) if( getNetTypeGame() == NET_GAME_TYPE_SERVER ) { - proto_send_kill_server(tux); + proto_send_kill_server(PROTO_SEND_ALL, NULL, tux); } } @@ -398,11 +398,11 @@ static void eventTuxIsDeadWIthShot(tux_t *tux, shot_t *shot) if( shot->author != NULL && shot->author != tux ) { shot->author->score++; - } - if( getNetTypeGame() == NET_GAME_TYPE_SERVER ) - { - proto_send_score_server(shot->author); + if( getNetTypeGame() == NET_GAME_TYPE_SERVER ) + { + proto_send_score_server(PROTO_SEND_ALL, NULL, shot->author); + } } countRoundInc(); @@ -426,7 +426,7 @@ void tuxTeleport(tux_t *tux) if( getNetTypeGame() == NET_GAME_TYPE_SERVER ) { - proto_send_newtux_server(NULL, tux); + proto_send_newtux_server(PROTO_SEND_ALL, NULL, tux); } } @@ -575,7 +575,8 @@ void switchTuxGun(tux_t *tux) { int i; - if( tux->isCanSwitchGun == FALSE ) + if( tux->control != TUX_CONTROL_NET && + tux->isCanSwitchGun == FALSE ) { return; } @@ -695,7 +696,7 @@ static void eventBonus(tux_t *tux) if( getNetTypeGame() == NET_GAME_TYPE_SERVER ) { - proto_send_newtux_server(NULL, tux); + proto_send_newtux_server(PROTO_SEND_ALL, NULL, tux); } } } -- cgit v1.2.3