mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Merge pull request #1527 from nheir/fix_ctf_count
Fix CTF teamscore for initial grabing
This commit is contained in:
commit
e244c2752d
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue