From a3ca90f40ad03e1df4c6657e13b638755ee9c330 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Tue, 25 Dec 2012 22:46:22 +0000 Subject: [PATCH] revert to the former shotlines' behavior git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6997 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/renderparticles.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/src/renderparticles.cpp b/source/src/renderparticles.cpp index 5af6f2ca..c3ee3422 100644 --- a/source/src/renderparticles.cpp +++ b/source/src/renderparticles.cpp @@ -655,9 +655,8 @@ VARP(bulletairsounddestrad, 0, 8, 1000); void addshotline(dynent *pl, const vec &from, const vec &to) { - bool spectating = player1->isspectating(); - if(pl == player1 || (spectating && camera1->type==ENT_PLAYER) || !shotlinettl || !shotline) return; - bool fx = shotlinettl > 0 && (spectating || !multiplayer(false)); // allow fx only in spect mode and locally + if(pl == player1 || !shotlinettl || !shotline) return; + bool fx = shotlinettl > 0 && (player1->isspectating() || !multiplayer(false)); // allow fx only in spect mode and locally if(rnd(3) && !fx) return; // show all shotlines when fx enabled int start = (camera1->o.dist(to) <= 10.0f) ? 8 : 5;