mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-06 11:10:03 +00:00
Switch everything to 15.16-bit precision fixeds, to allow more accurate unit vectors and angles.
This was SVN commit r7497.
This commit is contained in:
@@ -113,10 +113,10 @@ public:
|
||||
convert_to<const char*>("test", "\"test\"");
|
||||
convert_to<const char*>(s1.c_str(), "\"t\"");
|
||||
|
||||
roundtrip<CFixed_23_8>(CFixed_23_8::FromInt(0), "0");
|
||||
roundtrip<CFixed_23_8>(CFixed_23_8::FromInt(123), "123");
|
||||
roundtrip<CFixed_23_8>(CFixed_23_8::FromInt(-123), "-123");
|
||||
roundtrip<CFixed_23_8>(CFixed_23_8::FromDouble(123.25), "123.25");
|
||||
roundtrip<fixed>(fixed::FromInt(0), "0");
|
||||
roundtrip<fixed>(fixed::FromInt(123), "123");
|
||||
roundtrip<fixed>(fixed::FromInt(-123), "-123");
|
||||
roundtrip<fixed>(fixed::FromDouble(123.25), "123.25");
|
||||
}
|
||||
|
||||
void test_integers()
|
||||
|
||||
Reference in New Issue
Block a user