X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fopengl%2Fr_game.pas;h=6b25a4f69aa81c63b34fb3e30cc5402270810d81;hb=ff0d6ee82618de8dcfda806a334defa2227fad44;hp=58bbd6305edcc9739acee071f1779a0f347aa2ad;hpb=55f201758f237cac6c889e98572e6eda7c4067fc;p=d2df-sdl.git diff --git a/src/game/opengl/r_game.pas b/src/game/opengl/r_game.pas index 58bbd63..6b25a4f 100644 --- a/src/game/opengl/r_game.pas +++ b/src/game/opengl/r_game.pas @@ -47,9 +47,14 @@ implementation {$IFDEF ENABLE_GFX} g_gfx, r_gfx, {$ENDIF} + {$IFDEF ENABLE_CORPSES} + g_corpses, + {$ENDIF} + {$IFDEF ENABLE_SYSTEM} + g_system, + {$ENDIF} SysUtils, Classes, Math, g_base, g_basic, r_graphics, - g_system, MAPDEF, xprofiler, utils, wadreader, CONFIG, e_input, e_sound, g_language, g_console, g_triggers, g_player, g_options, g_monsters, g_map, g_panel, @@ -572,7 +577,9 @@ var begin e_TextureFontGetSize(gStdFont, ww2, hh2); - sys_HandleInput; + {$IFDEF ENABLE_SYSTEM} + sys_HandleInput; + {$ENDIF} if g_Console_Action(ACTION_SCORES) then begin @@ -803,9 +810,7 @@ begin // HACK: take stats screenshot immediately after the first frame of the stats showing if gScreenshotStats and (not StatShotDone) and (Length(CustomStat.PlayerStat) > 1) then begin -{$IFNDEF HEADLESS} g_TakeScreenShot('stats/' + StatFilename); -{$ENDIF} StatShotDone := True; end; end; @@ -1554,7 +1559,9 @@ begin {$IFDEF ENABLE_GIBS} drawOther('gibs', @r_PlayerModel_DrawGibs); {$ENDIF} - drawOther('corpses', @r_Player_DrawCorpses); + {$IFDEF ENABLE_CORPSES} + drawOther('corpses', @r_Player_DrawCorpses); + {$ENDIF} drawPanelType('*wall', PANEL_WALL, g_rlayer_wall); drawOther('monsters', @r_Monsters_Draw); drawOther('itemdrop', @r_Items_DrawDrop); @@ -1630,7 +1637,12 @@ begin glPushMatrix(); - camObj := p.getCameraObj(); + {$IFDEF ENABLE_CORPSES} + camObj := g_Corpses_GetCameraObj(p); + {$ELSE} + camObj := p.Obj; + {$ENDIF} + camObj.lerp(gLerpFactor, fX, fY); px := fX + PLAYER_RECT_CX; py := fY + PLAYER_RECT_CY+nlerp(p.SlopeOld, camObj.slopeUpLeft, gLerpFactor); @@ -2156,9 +2168,7 @@ begin end; {$ENDIF} -{$IFNDEF HEADLESS} r_Console_Draw(); -{$ENDIF} if g_debug_Sounds and gGameOn then begin