From 4378796209c0979eb096ece16425d29464d8669a Mon Sep 17 00:00:00 2001 From: Wolfgang Becker Date: Tue, 16 May 2006 16:26:12 +0000 Subject: [PATCH] Updated monodev's project files. SVN-Revision: 3539 --- src/object/player.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/object/player.cpp b/src/object/player.cpp index f9efddf07..a7643b79d 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -201,6 +201,10 @@ Player::update(float elapsed_time) bbox.get_height()*0.66666 - 32); grabbed_object->grab(*this, pos, dir); } + + if(grabbed_object != 0 && dying){ + grabbed_object->ungrab(*this, dir); + } on_ground_flag = false; } -- 2.11.0