Skip to content

Commit

Permalink
fix enemy healthbars in NG+
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Feb 15, 2021
1 parent eae24cf commit 3b4b373
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/game/health.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ void __cdecl DrawGameInfo()
if (TR1MConfig.enable_enemy_healthbar && Lara.target) {
TR1MRenderBar(
Lara.target->hit_points,
Objects[Lara.target->object_number].hit_points,
Objects[Lara.target->object_number].hit_points
* (SaveGame[0].bonus_flag ? 2 : 1),
TR1M_BAR_ENEMY_HEALTH);
}
}
Expand Down
10 changes: 2 additions & 8 deletions src/game/text.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,11 @@ void __cdecl T_DrawText()
}
}
if (Camera.number_frames > 30 && fps_text) {
if (fps_text->flags & TF_ACTIVE) {
fps_text->flags &= ~TF_ACTIVE;
--TextStringCount;
}
T_RemovePrint(fps_text);
fps_text = NULL;
}
} else if (fps_text) {
if (fps_text->flags & TF_ACTIVE) {
fps_text->flags &= ~TF_ACTIVE;
--TextStringCount;
}
T_RemovePrint(fps_text);
fps_text = NULL;
}

Expand Down

0 comments on commit 3b4b373

Please sign in to comment.