[saco] Rename and match unnamed_100B4B50(...)

This commit is contained in:
RD42 2024-11-03 23:08:30 +08:00
parent cf6eec3a3f
commit 51df0649e0
3 changed files with 10 additions and 7 deletions

View File

@ -138,7 +138,7 @@ void CCamera::FUNC_1009D660(CEntity *pEntity)
if(pEntity) { if(pEntity) {
MATRIX4X4 mat; MATRIX4X4 mat;
pEntity->GetMatrix(&mat); pEntity->GetMatrix(&mat);
if(unnamed_100B4B50(&mat.pos)) { if(FUNC_100B4B50(&mat.pos)) {
InterpolatePosition(&mat.pos, &mat.pos, 100, 1); InterpolatePosition(&mat.pos, &mat.pos, 100, 1);
} }
} }
@ -152,7 +152,7 @@ void CCamera::FUNC_1009D6B0()
MATRIX4X4 mat; MATRIX4X4 mat;
field_0->GetMatrix(&mat); field_0->GetMatrix(&mat);
if(unnamed_100B4B50(&mat.pos)) { if(FUNC_100B4B50(&mat.pos)) {
InterpolatePosition(&mat.pos, &mat.pos, 100, 1); InterpolatePosition(&mat.pos, &mat.pos, 100, 1);
} }
} }

View File

@ -1501,12 +1501,15 @@ DWORD __stdcall CRC32FromUpcaseString(char *szString)
bool unnamed_100B4B50(VECTOR *vecPos) bool FUNC_100B4B50(VECTOR *vecPos)
{ {
return if( vecPos->X < 20000.0f && vecPos->X > -20000.0f &&
vecPos->X < 20000.0f && vecPos->X > -20000.0f &&
vecPos->Y < 20000.0f && vecPos->Y > -20000.0f && vecPos->Y < 20000.0f && vecPos->Y > -20000.0f &&
vecPos->Z < 100000.0f && vecPos->Z > -10000.0f; vecPos->Z < 100000.0f && vecPos->Z > -10000.0f )
{
return true;
}
return false;
} }

View File

@ -53,7 +53,7 @@ BOOL IsFileOrDirectoryExists(char * szPath);
DWORD unnamed_100B6100(char *szString, int nMaxLen); DWORD unnamed_100B6100(char *szString, int nMaxLen);
bool unnamed_100B4B50(VECTOR *vecPos); bool FUNC_100B4B50(VECTOR *vecPos);
BUILDING_TYPE * GamePool_GetBuilding(); BUILDING_TYPE * GamePool_GetBuilding();
DUMMY_TYPE * GamePool_GetDummy(); DUMMY_TYPE * GamePool_GetDummy();