diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-19 19:32:50 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-19 19:32:50 +0000 |
| commit | 01d613a7ccf695090262c9e22c396251146f00bd (patch) | |
| tree | 3f176dd05944d108259f02d968e5b221704fb274 /src/tux.c | |
| parent | 11239bc45b51f9cc9eaec8272e58a0dea0e10b93 (diff) | |
- upravy v kode
git-svn-id: http://opensvn.csie.org/tuxanci_ng@27 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/tux.c')
| -rw-r--r-- | src/tux.c | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -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); } } } |