summaryrefslogtreecommitdiff
path: root/src/tux.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-18 15:59:56 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-18 15:59:56 +0000
commit11239bc45b51f9cc9eaec8272e58a0dea0e10b93 (patch)
treeb326f1e9f0a7e7be456da7abd28fb28083efe2b5 /src/tux.c
parent42f5cf229efa2b20c642c7c0d7a2f3cd98b9a890 (diff)
- drobne upravy v suboroch, hlavne v scriptoch
git-svn-id: http://opensvn.csie.org/tuxanci_ng@26 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/tux.c')
-rw-r--r--src/tux.c5
1 files changed, 4 insertions, 1 deletions
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 )
{