From b4b11fa3fcb461e74e034568a133508bd3736f10 Mon Sep 17 00:00:00 2001 From: auria Date: Sat, 25 May 2013 23:14:57 +0000 Subject: [PATCH] Apply patch by belphegorr to fix nitro target git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12785 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/race_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/states_screens/race_gui.cpp b/src/states_screens/race_gui.cpp index d519a0f10..5e97021d0 100644 --- a/src/states_screens/race_gui.cpp +++ b/src/states_screens/race_gui.cpp @@ -383,7 +383,7 @@ void RaceGUI::drawEnergyMeter(int x, int y, const AbstractKart *kart, const float r1 = 0.4f; const float r2 = 0.65f; - if(state<=r1) + if(coin_target<=r1) { count = 3; float f = coin_target/r1; @@ -392,7 +392,7 @@ void RaceGUI::drawEnergyMeter(int x, int y, const AbstractKart *kart, + (1.0f - 0.08f)*f*gauge_width, offset.Y,0); } - else if(state<=r2) + else if(coin_target<=r2) { count = 4; float f = (coin_target - r1)/(r2-r1);