Merge pull request #1527 from nheir/fix_ctf_count

Fix CTF teamscore for initial grabing
This commit is contained in:
oy 2018-10-17 17:04:48 +02:00 committed by GitHub
commit e244c2752d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,11 +214,11 @@ void CGameControllerCTF::Tick()
else
{
// take the flag
F->Grab(apCloseCCharacters[i]);
if(F->IsAtStand())
m_aTeamscore[fi^1]++;
F->Grab(apCloseCCharacters[i]);
F->GetCarrier()->GetPlayer()->m_Score += 1;
char aBuf[256];