From: Andrew C. <ac...@us...> - 2005-08-03 22:08:29
|
Update of /cvsroot/planeshift/planeshift/src/client/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30385/src/client/gui Modified Files: pawspath.cpp Log Message: Fixed for show stat values correctly instead of showing 0. Index: pawspath.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/gui/pawspath.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** pawspath.cpp 3 Aug 2005 21:49:19 -0000 1.16 --- pawspath.cpp 3 Aug 2005 22:08:21 -0000 1.17 *************** *** 115,119 **** { PathDefinition::Bonus* bonus = iter.Next(); ! int procent = (int) bonus->value*100; char tempString[100]; sprintf(tempString, "%d%%\n", procent); --- 115,119 ---- { PathDefinition::Bonus* bonus = iter.Next(); ! int procent = (int) (bonus->value*100.0); char tempString[100]; sprintf(tempString, "%d%%\n", procent); |