Refactor health.cpp

This commit is contained in:
Sezz 2021-11-10 16:11:36 +11:00
parent be1ee111bf
commit a3b1403433
11 changed files with 182 additions and 186 deletions

View file

@ -2265,10 +2265,9 @@ namespace TEN::Renderer
// Bars
int flash = FlashIt();
if (DashTimer < 120)
drawBar(DashTimer / 120.0f, g_DashBar,ID_DASH_BAR_TEXTURE,0,0);
UpdateHealthBar(flash);
UpdateAirBar(flash);
UpdateSprintBar();
UpdateHealthBar(LaraItem, flash);
UpdateAirBar(LaraItem, flash);
DrawAllPickups();
drawOverlays(view); // Draw binoculars or lasersight