about summary refs log tree commit diff
path: root/src/game/server/entities/character.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server/entities/character.cpp')
-rw-r--r--src/game/server/entities/character.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp
index 98bfa862..05820102 100644
--- a/src/game/server/entities/character.cpp
+++ b/src/game/server/entities/character.cpp
@@ -2,6 +2,7 @@
 #include <engine/e_server_interface.h>
 #include <engine/e_config.h>
 #include <game/server/gamecontext.hpp>
+#include <game/mapitems.hpp>
 
 #include "character.hpp"
 #include "laser.hpp"
@@ -588,6 +589,9 @@ void CHARACTER::tick()
 	//core.jumped = jumped;
 	core.input = input;
 	core.tick(true);
+	
+	if(col_get(pos.x, pos.y)&COLFLAG_DEATH)
+		die(player->client_id, -1);
 
 	// handle weapons
 	handle_weapons();