Float division
I'll investigate this. Thanks.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Can you send me a test that reproduces the bug?
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Version 2.16.0, and still the same:
float t = 1.0f / 0.5f;
Gives compile-time division by zero... It just looks like float literals are casted to integers during compilation...
[Edited by - scypior on April 4, 2009 5:44:10 PM]
I'll make some tests on this.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Obviously the compiler cannot be affected by this locale, so I'll have to find a way to turn off international settings while compiling (or perhaps write my own string to float converter).
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
setlocale(LC_ALL, "C");
to your program somewhere before you create the script engine. Does that help?
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game