Update of /cvsroot/decaldev/source/DecalFilters
In directory usw-pr-cvs1:/tmp/cvs-serv29078
Modified Files:
CharacterStats.cpp
Log Message:
fixed a rounding error and removed some stupid code to keep from subtracting .5 and then adding it again in the next line
Index: CharacterStats.cpp
===================================================================
RCS file: /cvsroot/decaldev/source/DecalFilters/CharacterStats.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** CharacterStats.cpp 3 Sep 2002 18:03:34 -0000 1.27
--- CharacterStats.cpp 14 Sep 2002 15:28:53 -0000 1.28
***************
*** 1400,1404 ****
long nBuffs = CurSecStat[Index - 1] - static_cast< long >(fSkill); //calculates net buffs
! *pVal = long((fSkill * Vitae) + 0.5f) + nBuffs;
return S_OK;
--- 1400,1404 ----
long nBuffs = CurSecStat[Index - 1] - static_cast< long >(fSkill); //calculates net buffs
! *pVal = long((fSkill * Vitae)) + nBuffs;
return S_OK;
***************
*** 1425,1432 ****
long nBuffs = CurSkill[Index] - long(fSkill);
- fSkill -= 0.5f; // avoid double round...
-
// AC calculates the vitae penalty to a skill before buffs, so we do too
! *pVal = long((long(fSkill) * Vitae) + 0.5f) + nBuffs;
return S_OK;
--- 1425,1430 ----
long nBuffs = CurSkill[Index] - long(fSkill);
// AC calculates the vitae penalty to a skill before buffs, so we do too
! *pVal = long((long(fSkill) * Vitae)) + nBuffs;
return S_OK;
|