gui fixes, local player in scoreboard

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1544 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-01-03 11:29:49 +00:00
parent 0b1f05f2e6
commit af8ba0743c
3 changed files with 12 additions and 14 deletions
+2 -1
View File
@@ -551,12 +551,13 @@ bool addscorchmark(vec &o, float radius)
return true;
}
VARP(shotlines, 0, 1, 1);
VARP(shotlinettl, 0, 0, 10000);
VARP(bulletairsound, 0, 1, 1);
void addshotline(dynent *pl, vec &from, vec &to)
{
if(pl == player1) return;
if(pl == player1 || !shotlines) 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