1
0
forked from 0ad/0ad

Show 2 decimals for gather rates in gui.

Patch By: Nescio
Differential Revision: https://code.wildfiregames.com/D2594
Extremely far away ref: #4099

This was SVN commit r23614.
This commit is contained in:
bb 2020-05-01 16:39:48 +00:00
parent 23111ab427
commit 8158fe7b23

View File

@ -576,7 +576,7 @@ function getGatherTooltip(template)
}, [0, 0]);
if (rate > 0)
rates[resource.code] = +(rate / count).toFixed(1);
rates[resource.code] = +(rate / count).toFixed(2);
}
if (!Object.keys(rates).length)