X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Frenders%2Fopengl%2Fr_render.pas;h=3209f2ad1a50ea3e4b81e6e803a750fb44129507;hb=d5556aa86df1c0b367d3927444715efbc19a1cdf;hp=d445dcb6a3f5ada784171cc44353140ab4d3ba7c;hpb=49ab56efcf5089400dcdc480b7c4216286fb3d78;p=d2df-sdl.git diff --git a/src/game/renders/opengl/r_render.pas b/src/game/renders/opengl/r_render.pas index d445dcb..3209f2a 100644 --- a/src/game/renders/opengl/r_render.pas +++ b/src/game/renders/opengl/r_render.pas @@ -378,21 +378,22 @@ implementation end; procedure r_Render_DrawView (x, y, w, h: Integer; p: TPlayer); - var l, t, r, b: Integer; + var l, t, r, b, xx, yy: Integer; begin r_Draw_GetRect(l, t, r, b); r_Draw_SetRect(x, y, x + w, y + h); + r_Common_GetCameraPos(p, true, xx, yy); if p <> nil then begin - r_Map_Draw(x, y, w, h, p.obj.x + PLAYER_RECT_CX, p.obj.y + PLAYER_RECT_CY, p); + r_Map_Draw(x, y, w, h, xx, yy, p); r_Render_DrawStatsView(x, y, w, h, p); if p.Spectator and p.NoRespawn then r_Common_DrawText(_lc[I_PLAYER_SPECT4], x div 2 + w div 2, y div 2 + h div 2, 255, 255, 255, 255, stdfont, TBasePoint.BP_CENTER); end else begin - r_Map_Draw(x, y, w, h, 0, 0, nil); + r_Map_Draw(x, y, w, h, xx, yy, nil); end; r_Draw_SetRect(l, t, r, b);