about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/server/entities/character.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp
index 98650f81..3aeabd2d 100644
--- a/src/game/server/entities/character.cpp
+++ b/src/game/server/entities/character.cpp
@@ -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