mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed T2 ctf scoring
This commit is contained in:
parent
c896ce54ea
commit
b5d70c047f
|
@ -79,7 +79,7 @@ void gameobject_ctf::tick()
|
|||
if(distance(f->pos, flags[fi^1]->pos) < 24)
|
||||
{
|
||||
// CAPTURE! \o/
|
||||
teamscore[fi^1]++;
|
||||
teamscore[fi^1] += 100;
|
||||
for(int i = 0; i < 2; i++)
|
||||
flags[i]->reset();
|
||||
|
||||
|
@ -107,6 +107,8 @@ void gameobject_ctf::tick()
|
|||
else
|
||||
{
|
||||
// take the flag
|
||||
if(f->at_stand)
|
||||
teamscore[fi^1]++;
|
||||
f->at_stand = 0;
|
||||
f->carrying_player = players[i];
|
||||
create_sound_global(SOUND_CTF_GRAB);
|
||||
|
|
Loading…
Reference in a new issue