mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
a fix for the physical size of tees in changeset:1659
This commit is contained in:
parent
feaab8565d
commit
8c0dd7f431
|
@ -593,11 +593,12 @@ void CHARACTER::tick()
|
|||
core.input = input;
|
||||
core.tick(true);
|
||||
|
||||
float phys_size = 28.0f;
|
||||
// handle death-tiles
|
||||
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)
|
||||
if(col_get((int)(pos.x+phys_size/2), (int)(pos.y-phys_size/2))&COLFLAG_DEATH ||
|
||||
col_get((int)(pos.x+phys_size/2), (int)(pos.y+phys_size/2))&COLFLAG_DEATH ||
|
||||
col_get((int)(pos.x-phys_size/2), (int)(pos.y-phys_size/2))&COLFLAG_DEATH ||
|
||||
col_get((int)(pos.x-phys_size/2), (int)(pos.y+phys_size/2))&COLFLAG_DEATH)
|
||||
die(player->client_id, -1);
|
||||
|
||||
// handle weapons
|
||||
|
|
Loading…
Reference in a new issue