Address jonhboy's Request: Round land impact instead of chopping off the decimal

This commit is contained in:
Inusaito Sayori
2013-10-18 08:58:13 -04:00
parent ef3f78175c
commit 65d2775e2a

View File

@@ -527,7 +527,7 @@ void LLFloaterTools::refresh()
{ {
F32 link_cost = LLSelectMgr::getInstance()->getSelection()->getSelectedObjectCost(); F32 link_cost = LLSelectMgr::getInstance()->getSelection()->getSelectedObjectCost();
LLStringUtil::format_map_t prim_equiv_args; LLStringUtil::format_map_t prim_equiv_args;
prim_equiv_args["SEL_WEIGHT"] = llformat("%.1d", (S32)link_cost); prim_equiv_args["SEL_WEIGHT"] = llformat("%.0f", link_cost);
selection_args["PE_STRING"] = getString("status_selectprimequiv", prim_equiv_args); selection_args["PE_STRING"] = getString("status_selectprimequiv", prim_equiv_args);
} }
else else