diff Player.cpp @ 949:c0d0656aa662

Awards
author Nomad
date Wed, 01 May 2013 20:04:24 +0200
parents a78f08dbeb88
children ec7568e13b24
line wrap: on
line diff
--- a/Player.cpp	Wed May 01 17:31:10 2013 +0200
+++ b/Player.cpp	Wed May 01 20:04:24 2013 +0200
@@ -3281,7 +3281,7 @@
   unsigned int result; // eax@2
 
   if ( CanTrainToNextLevel() )
-    result = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0);
+    result = TargetColor(0, 0xFFu, 0);
   else
     result = 0;
   return result;
@@ -6919,9 +6919,9 @@
   __int16 uGreen; // [sp+8h] [bp-8h]@1
   __int16 uRed; // [sp+Ch] [bp-4h]@1
 
-  uRed = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0x23u, 0);
-  uGreen = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0);
-  uWhite = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu);
+  uRed = TargetColor(0xFFu, 0x23u, 0);
+  uGreen = TargetColor(0, 0xFFu, 0);
+  uWhite = TargetColor(0xFFu, 0xFFu, 0xFFu);
   pBaseAttrValue = StatTable[GetRace()][uStat].uBaseValue;
 
   switch (uStat)