summaryrefslogtreecommitdiff
path: root/src/base/tux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/tux.c')
-rw-r--r--src/base/tux.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base/tux.c b/src/base/tux.c
index 352487d..a8e40b5 100644
--- a/src/base/tux.c
+++ b/src/base/tux.c
@@ -343,6 +343,16 @@ void eventTuxIsDead(tux_t *tux)
static void eventTuxIsDeadWIthShot(tux_t *tux, shot_t *shot)
{
+ if( shot->author_id == tux->id )
+ {
+ tux->score--;
+
+ if( getNetTypeGame() == NET_GAME_TYPE_SERVER )
+ {
+ proto_send_newtux_server(PROTO_SEND_ALL, NULL, tux);
+ }
+ }
+
if( shot->author_id != tux->id )
{
tux_t *author;