From 7192617ba8741251fc1d7a7472afb976a6bacda2 Mon Sep 17 00:00:00 2001 From: flowtron Date: Tue, 9 Nov 2010 20:58:28 +0000 Subject: [PATCH] make the DES-stats-scripters happy - functions work all the time, not just in intermission git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5819 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index a31e76f7..56c14d11 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -752,8 +752,8 @@ void dokill(playerent *pl, playerent *act, bool gib, int gun) void pstat_score(int cn) { - if(intermission) - { + /*if(intermission) + {*/ string scorestring; int p_flags = 0; int p_frags = 0; @@ -769,15 +769,15 @@ void pstat_score(int cn) } formatstring(scorestring)("%d %d %d %d %d %s", p_flags, p_frags, p_deaths, p_points, pl ? pl->team : -1, pl ? pl->name : "\"\""); result(scorestring); - } - else result("0 0 0 0 -1 \"\""); + /*} + else result("0 0 0 0 -1 \"\"");*/ } COMMAND(pstat_score, ARG_1INT); void pstat_weap(int cn) { - if(intermission) - { + /*if(intermission) + {*/ string wbuf; defformatstring(weapstring)(""); playerent *pl = cn==player1->clientnum?player1:getclient(cn); @@ -788,13 +788,13 @@ void pstat_weap(int cn) copystring(weapstring, wbuf); } result(weapstring); - } + /*} else { defformatstring(weapstring)(""); loopi(NUMGUNS) { defformatstring(wbuf)("%s%s0 0", weapstring, strlen(weapstring)?" ":""); copystring(weapstring, wbuf); } result(weapstring); - } + }*/ } COMMAND(pstat_weap, ARG_1INT);