From 4eb419a979330b14b6909cf506efb57a14ea2e4c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 20 Jan 2003 05:17:49 +0000 Subject: [PATCH] make OK and NG affect life meter --- stepmania/src/LifeMeterBar.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/stepmania/src/LifeMeterBar.cpp b/stepmania/src/LifeMeterBar.cpp index c45a7e5ce3..8b9f4e17a9 100644 --- a/stepmania/src/LifeMeterBar.cpp +++ b/stepmania/src/LifeMeterBar.cpp @@ -334,7 +334,15 @@ void LifeMeterBar::ChangeLife( TapNoteScore score ) void LifeMeterBar::ChangeLife( HoldNoteScore score, TapNoteScore tscore ) { - + /* The initial tap note score (which we happen to have in have in + * tscore) has already been reported to the above function. If the + * hold end result was an NG, count it as a miss; if the end result + * was an OK, count a perfect. (Remember, this is just life meter + * computation, not scoring.) */ + if(score == HNS_NG) + ChangeLife(TNS_MISS); + else if(score == HNS_OK) + ChangeLife(TNS_PERFECT); } void LifeMeterBar::AfterLifeChanged()