WebDev

SMF Arcade => SMF Arcade Support + Plugins => Topic started by: Chen Zhen on August 11, 2018, 01:34:46 AM

Title: scoring with decimals
Post by: Chen Zhen on August 11, 2018, 01:34:46 AM

Some games need to record the tenths, hundredths, etc. (ie. scores as time).
Right now the arcade does not record decimals in the database.
I must have did that in error at some point.
This needs to be fixed.
Title: Re: scoring with decimals
Post by: Chen Zhen on August 11, 2018, 08:45:44 AM

An edited save sub-routine solved this problem.
It needed parseFloat instead of what used to be parseInt.
Any of the older converted games on this site should not need the change as they do not require fractions in their score.
EhPortal 1.39.6 © 2024, WebDev