mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
reset flag when it hits a death-tile; ticket #513
This commit is contained in:
parent
9d1c56e2fd
commit
3cdb90c10c
|
@ -601,6 +601,7 @@ void CHARACTER::tick()
|
|||
core.input = input;
|
||||
core.tick(true);
|
||||
|
||||
// handle death-tiles
|
||||
if(col_get((int)pos.x, (int)pos.y)&COLFLAG_DEATH)
|
||||
die(player->client_id, -1);
|
||||
|
||||
|
|
|
@ -73,6 +73,13 @@ void GAMECONTROLLER_CTF::tick()
|
|||
if(!f)
|
||||
continue;
|
||||
|
||||
// flag hits death-tile, reset it
|
||||
if(col_get((int)f->pos.x, (int)f->pos.y)&COLFLAG_DEATH)
|
||||
{
|
||||
f->reset();
|
||||
continue;
|
||||
}
|
||||
|
||||
//
|
||||
if(f->carrying_character)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue