Jump to content

- - - - -
Pending Dev response

Donator badge, code issue

  • Please log in to reply
1 reply to this topic

#1 Exze


    Former Moderator

  • Members
  • PipPipPip
  • 502 posts

Steam Profile


Posted 24 January 2016 - 12:47 AM

TF2C Profile: Xzcvbn2
Region: EU

Browser: Google Chrome
Critical plugins: --
OS: Windows
Connection type: --

Bug type: Stats/User profile
Lobby ID: --
Date & Time: --

I've donated a few time to TF2C now, each with a donation of €5, for the perks. I've noticed that the donator badge is a little faulty, probably due to a little bit of a coding issue. After the donation of the first €5, everthing is fine, however after another €5, the badge says a total of €15 has been donated. I've donated a total of 6 times now, and so €30 should be displayed on the badge, however it says €105 (5 + 10 + 15 + 20 +25 + 30 = 105).

I assume the code must have some kind of recursion statement? Otherwise it would not make sense that it continuously adds up the amounts from previous donations. I have not tried with larger donations, however I may try €6 next time I donate, just as a bug test. This isn't a major issue, and could probably be solved with a simple line of DonatorBadge = AmountDonated + DonatorBadge, or something along those lines.

#2 ninjaMooCow


    Former TF2C staff

  • Members
  • PipPipPipPipPip
  • 2225 posts
  • LocationOhio

Posted 25 February 2016 - 12:04 AM

Probably public school math.  I'll tag it dev input.

Also tagged with one or more of these keywords: Pending Dev response

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users