Small Acos fix

This commit is contained in:
Sergeanur 2021-05-10 02:36:18 +03:00
parent ceb22d71dd
commit 1817727a66

View file

@ -1206,7 +1206,7 @@ CFileLoader::LoadObjectInstance(const char *line)
if(!CStreaming::IsObjectInCdImage(id)) if(!CStreaming::IsObjectInCdImage(id))
debug("Not in cdimage %s\n", mi->GetModelName()); debug("Not in cdimage %s\n", mi->GetModelName());
angle = -RADTODEG(2.0f * acosf(angle)); angle = -RADTODEG(2.0f * Acos(angle));
xform = RwMatrixCreate(); xform = RwMatrixCreate();
RwMatrixRotate(xform, &axis, angle, rwCOMBINEREPLACE); RwMatrixRotate(xform, &axis, angle, rwCOMBINEREPLACE);
RwMatrixTranslate(xform, &trans, rwCOMBINEPOSTCONCAT); RwMatrixTranslate(xform, &trans, rwCOMBINEPOSTCONCAT);