From: DeaDDooMER Date: Tue, 26 Jul 2022 22:09:13 +0000 (+0300) Subject: gl: implement camera look up/down X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=592951a4048e48d2239ed64bb0f5743dc8df03d7 gl: implement camera look up/down --- diff --git a/src/game/renders/opengl/r_common.pas b/src/game/renders/opengl/r_common.pas index 4484589..99f46d1 100644 --- a/src/game/renders/opengl/r_common.pas +++ b/src/game/renders/opengl/r_common.pas @@ -117,8 +117,8 @@ implementation {$ENDIF} if p <> nil then begin - // TODO look up/down r_Common_GetPlayerPos(p, x, y); + y := y - nlerp(p.IncCamOld, p.IncCam, gLerpFactor); if center then begin x := x + p.obj.rect.width div 2;