diff TrainingScoreManager.h @ 37:52dbd5b4cfa9

slider feedback and textures
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Wed, 03 Dec 2014 11:38:26 +0000
parents 146033869165
children fea11c3d1d94
line wrap: on
line diff
--- a/TrainingScoreManager.h	Tue Dec 02 13:25:48 2014 +0000
+++ b/TrainingScoreManager.h	Wed Dec 03 11:38:26 2014 +0000
@@ -113,7 +113,7 @@
         result.realDistanceToTarget = dist;
         result.targetBandHit = band; // eg bullseye = 0 edge = 7
         result.timeAllowed = timeAllowed;
-        result.score = round(TP*10);
+        result.score = int(round(TP*10.0));
         result.displayText = msg.str();
         result.difficultyLevel = difficulty;
     
@@ -129,11 +129,11 @@
         }else if(result.targetBandHit == 4){
             c = ofColor(0,255,0,255);       // green 4
         }else{
-            c = ofColor(0,0,0,255);         // black worst
+            c = ofColor(123,123,123,255);         // grey worst
         }
         result.colorBand = c;
 
-        if(score > 0) totalScored += score;
+        if(result.score > 0) totalScored += result.score;
         
         
         vector<int> details;