Readded old lives counter

This commit is contained in:
KiritoDv 2025-01-04 19:09:17 -06:00
parent b335f4472b
commit fa5aaf7408

View File

@ -296,7 +296,17 @@ void OnBombCounterDraw(IEvent* ev){
} }
void OnLivesCounterDraw(IEvent* ev){ void OnLivesCounterDraw(IEvent* ev){
ev->cancelled = CVarGetInteger("gRestoreOldBoostGauge", 0) == 1; bool restore = CVarGetInteger("gRestoreOldBoostGauge", 0) == 1;
if(!restore){
return;
}
if (gPlayState == PLAY_PAUSE || gCurrentLevel == LEVEL_TRAINING) {
return;
}
ev->cancelled = true;
HUD_LivesCount2_Draw(258.0f, SCREEN_HEIGHT - 20, gLifeCount[gPlayerNum]);
} }
void PortEnhancements_Init() { void PortEnhancements_Init() {