Author Topic: how to make the credits shown cuts off the figures after the decimal point?  (Read 1842 times)

Offline hunterzj

it is a little bit akward to see things like you have 123.23credits....it is possible to cut it off when showing it to others?

thanks

Offline Daniel15

Sure, an easy fix :)
In Sources/shop/Shop-Subs.php, find:
Code: [Select]
$money = (float) $money;
Replace with:
Code: [Select]
// Cast to float
$money = (int) $money;

This should fix it in most (if not all) places it is displayed in :).