mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 19:14:15 +01:00
Small unification
This commit is contained in:
parent
0b64436f5f
commit
d9a3533438
@ -19,7 +19,7 @@ void CCurves::CalcCurvePoint(CVector* pPos1, CVector* pPos2, CVector* pDir1, CVe
|
||||
float actualFactor = CalcSpeedScaleFactor(pPos1, pPos2, pDir1->x, pDir1->y, pDir2->x, pDir2->y);
|
||||
CVector2D dir1 = *pDir1 * actualFactor;
|
||||
CVector2D dir2 = *pDir2 * actualFactor;
|
||||
float curveCoef = 0.5f - 0.5f * cos(3.1415f * between);
|
||||
float curveCoef = 0.5f - 0.5f * Cos(3.1415f * between);
|
||||
*pOutPos = CVector(
|
||||
(pPos1->x + between * dir1.x) * (1.0f - curveCoef) + (pPos2->x - (1 - between) * dir2.x) * curveCoef,
|
||||
(pPos1->y + between * dir1.y) * (1.0f - curveCoef) + (pPos2->y - (1 - between) * dir2.y) * curveCoef,
|
||||
|
@ -131,7 +131,7 @@ public:
|
||||
// TODO: the cast is unsafe
|
||||
return (int)((U*)entry - m_entries);
|
||||
}
|
||||
int GetNoOfUsedSpaces(void){
|
||||
int GetNoOfUsedSpaces(void) const{
|
||||
int i;
|
||||
int n = 0;
|
||||
for(i = 0; i < m_size; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user