From fd8f6c935e5b65101768e08007d5751e8e5e9ba8 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Thu, 12 Mar 2020 22:12:55 +0300 Subject: [PATCH] draw talkbubble above the player corpse when necessary --- src/game/g_player.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/g_player.pas b/src/game/g_player.pas index 85b8e15..dd5378b 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -2454,8 +2454,11 @@ var Rb, Gb, Bb, Rw, Gw, Bw: SmallInt; Dot: Byte; + CObj: TObj; begin - FObj.lerp(gLerpFactor, fX, fY); + CObj := getCameraObj(); + CObj.lerp(gLerpFactor, fX, fY); + // NB: _F_Obj.Rect is used to keep the bubble higher; this is not a mistake bubX := fX+FObj.Rect.X + IfThen(FDirection = TDirection.D_LEFT, -4, 18); bubY := fY+FObj.Rect.Y - 18; Rb := 64; -- 2.29.2