differentiate ctf/htf flags in the server logs

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6312 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-04-23 21:00:04 +00:00
parent 0aa76ab6aa
commit d1290d4747
+4 -1
View File
@@ -1012,7 +1012,10 @@ void flagaction(int flag, int action, int actor)
logline(ACLOG_INFO,"[%s] %s returned the flag", c.hostname, c.name);
break;
case FM_SCORE:
logline(ACLOG_INFO, "[%s] %s scored with the flag for %s, new score %d", c.hostname, c.name, team_string(c.team), c.state.flagscore);
if(m_htf)
logline(ACLOG_INFO, "[%s] %s hunted the flag for %s, new score %d", c.hostname, c.name, team_string(c.team), c.state.flagscore);
else
logline(ACLOG_INFO, "[%s] %s scored with the flag for %s, new score %d", c.hostname, c.name, team_string(c.team), c.state.flagscore);
break;
case FM_KTFSCORE:
logline(ACLOG_INFO, "[%s] %s scored, carrying for %d seconds, new score %d", c.hostname, c.name, (gamemillis - f.stolentime) / 1000, c.state.flagscore);