Skip to content

Commit

Permalink
Show experience with one decimal place.
Browse files Browse the repository at this point in the history
Should make it clearer that it is not an integer number. Closes Warzone2100#2641.
  • Loading branch information
cybersphinx committed May 6, 2011
1 parent 40b3e31 commit 4f16182
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/display.cpp
Expand Up @@ -1825,10 +1825,10 @@ static void dealWithLMBDroid(DROID* psDroid, SELECTION_TYPE selection)
if(!psDroid->selected)
{
CONPRINTF(ConsoleString, (ConsoleString,
_("%s - Damage %d%% - Experience %d, %s"),
_("%s - Damage %d%% - Experience %.1f, %s"),
droidGetName(psDroid),
100 - clip(PERCENT(psDroid->body,psDroid->originalBody), 0, 100),
psDroid->experience/65536, _(getDroidLevelName(psDroid))));
psDroid->experience/65536.f, _(getDroidLevelName(psDroid))));

FeedbackOrderGiven();
}
Expand Down Expand Up @@ -2400,10 +2400,10 @@ static void dealWithRMB( void )
if(!psDroid->selected)
{
CONPRINTF(ConsoleString, (ConsoleString,
_("%s - Damage %d%% - Experience %d, %s"),
_("%s - Damage %d%% - Experience %.1f, %s"),
droidGetName(psDroid),
100 - clip(PERCENT(psDroid->body,psDroid->originalBody), 0, 100),
psDroid->experience/65536, _(getDroidLevelName(psDroid))));
psDroid->experience/65536.f, _(getDroidLevelName(psDroid))));

FeedbackOrderGiven();
}
Expand Down

0 comments on commit 4f16182

Please sign in to comment.