Add a FixHeading function

This is similar to what the client is doing

Should be used when adding 2 headings together (or an EQ angle to a
heading)
This commit is contained in:
Michael Cook (mackal)
2018-03-06 23:01:25 -05:00
parent e5e779c064
commit b3ac1001c9
2 changed files with 21 additions and 0 deletions
+3
View File
@@ -66,6 +66,9 @@ int FloatToEQ10(float d);
float EQSpeedRunToFloat(int d);
int FloatToEQSpeedRun(float d);
// brings heading back into EQ angles range
float FixHeading(float in);
uint32 SwapBits21and22(uint32 mask);
uint32 Catch22(uint32 mask);