diff --git a/binaries/data/mods/public/gui/test/functions_page_session_status_pane.js b/binaries/data/mods/public/gui/test/functions_page_session_status_pane.js index 2ebdb7dc3f..2dcc5f3752 100644 --- a/binaries/data/mods/public/gui/test/functions_page_session_status_pane.js +++ b/binaries/data/mods/public/gui/test/functions_page_session_status_pane.js @@ -177,7 +177,12 @@ function updateStat (baseName, cellSheet, cell, statistic) textStat.sprite = "snIconSheet" + cellSheet; textStat.cell_id = cellGroup[cellSheet][cell].id; textStat.tooltip = cellGroup[cellSheet][cell].name; - var iconStat = getGUIObjectByName (baseName + (statCurr + 1)) + var iconStat = getGUIObjectByName (baseName + (statCurr + 1)); + + if (!isNaN(statistic)) { + statistic = Math.ceil(statistic); + } + iconStat.caption = statistic; iconStat.tooltip = cellGroup[cellSheet][cell].name + ": " + statistic + "."; statCurr = (statCurr + 2);