From: fgsfds Date: Thu, 12 Mar 2020 19:12:55 +0000 (+0300) Subject: draw talkbubble above the player corpse when necessary X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=fd8f6c935e5b65101768e08007d5751e8e5e9ba8 draw talkbubble above the player corpse when necessary --- 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;