mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Changes the collision check for death-tiles so it reacts if any part of the tee is in the area of the tile. Before this change it reacts only if the middle of the tee is in the death tile.
This commit is contained in:
parent
11aa9f95fc
commit
36f4b66569
|
@ -594,7 +594,10 @@ void CHARACTER::tick()
|
||||||
core.tick(true);
|
core.tick(true);
|
||||||
|
|
||||||
// handle death-tiles
|
// handle death-tiles
|
||||||
if(col_get((int)pos.x, (int)pos.y)&COLFLAG_DEATH)
|
if(col_get((int)pos.x+6, (int)pos.y-6)&COLFLAG_DEATH ||
|
||||||
|
col_get((int)pos.x+6, (int)pos.y+6)&COLFLAG_DEATH ||
|
||||||
|
col_get((int)pos.x-6, (int)pos.y-6)&COLFLAG_DEATH ||
|
||||||
|
col_get((int)pos.x-6, (int)pos.y+6)&COLFLAG_DEATH)
|
||||||
die(player->client_id, -1);
|
die(player->client_id, -1);
|
||||||
|
|
||||||
// handle weapons
|
// handle weapons
|
||||||
|
|
Loading…
Reference in a new issue