CleverRaven/Cataclysm-DDA — pull request #9689 by BevapDin (2014-10-26 00:18:55+00:00)
Title: Fix player info showing wrong layer encumbrance.

Fixes #9414

KA101 is right, it is an interface glitch-out, yeah.

The value printed there is `iLayers`, an output parameter of `player::encumb`. It has recently (was to lazy to search for), made into a `double`, but the print statement contains "%d" which makes the print function interpret its argument as an `int`. The added cast now makes sure that the print function gets what it expects.

There is no space to write the number with decimal part anyway, only 3 characters can be printed there: the two parenthesis and a single digit. Numbers above 9 will move the closing parenthesis to far and the parenthesis will be overridden by the text behind it.