Branch: refs/heads/master
Home: https://github.com/Warzone2100/warzone2100
Commit: 00206b8d3f8ef81cd6335adc6c618376d8292041
https://github.com/Warzone2100/warzone2100/commit/00206b8d3f8ef81cd6335adc6c618376d8292041
Author: past-due <[email protected]>
Date: 2018-05-22 (Tue, 22 May 2018)
Changed paths:
M src/qtscriptfuncs.cpp
Log Message:
-----------
Fix js_distBetweenTwoPoints warning
`runtime error: nan is outside the range of representable values of type 'int'`
Use `.toInt32()` instead of `.toNumber()`, since the values are ultimately
passed to `iHypot(x, y)` which takes `int32_t`.
**NOTE:** This service been marked for deprecation:
https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-commits