deathraygames / civ-clicker

Fork of the open source game CivClicker, by David Holley and Scott A. Colcord
http://deathraygames.com/play-online/civ-clicker/
GNU General Public License v3.0
56 stars 43 forks source link

Fix Infinity comparison unit bug #73

Closed gsheppard closed 10 months ago

gsheppard commented 11 months ago

Issue:

+ ∞ and - ∞ buttons were always disabled.

Cause:

The data was being derived directly from the button element, and thus was a string. A strict comparison of Infinity === 'Infinity' will always return false.