From 11239bc45b51f9cc9eaec8272e58a0dea0e10b93 Mon Sep 17 00:00:00 2001 From: oroborus Date: Tue, 18 Mar 2008 15:59:56 +0000 Subject: - drobne upravy v suboroch, hlavne v scriptoch git-svn-id: http://opensvn.csie.org/tuxanci_ng@26 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/tux.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tux.c') diff --git a/src/tux.c b/src/tux.c index 0243ee3..c8b80cc 100644 --- a/src/tux.c +++ b/src/tux.c @@ -395,7 +395,10 @@ void eventTuxIsDead(tux_t *tux) static void eventTuxIsDeadWIthShot(tux_t *tux, shot_t *shot) { - shot->author->score++; + if( shot->author != NULL && shot->author != tux ) + { + shot->author->score++; + } if( getNetTypeGame() == NET_GAME_TYPE_SERVER ) { -- cgit v1.2.3