diff --git a/saco/game/camera.cpp b/saco/game/camera.cpp index 1c6a33f..fa7b1e2 100644 --- a/saco/game/camera.cpp +++ b/saco/game/camera.cpp @@ -138,7 +138,7 @@ void CCamera::FUNC_1009D660(CEntity *pEntity) if(pEntity) { MATRIX4X4 mat; pEntity->GetMatrix(&mat); - if(unnamed_100B4B50(&mat.pos)) { + if(FUNC_100B4B50(&mat.pos)) { InterpolatePosition(&mat.pos, &mat.pos, 100, 1); } } @@ -152,7 +152,7 @@ void CCamera::FUNC_1009D6B0() MATRIX4X4 mat; field_0->GetMatrix(&mat); - if(unnamed_100B4B50(&mat.pos)) { + if(FUNC_100B4B50(&mat.pos)) { InterpolatePosition(&mat.pos, &mat.pos, 100, 1); } } diff --git a/saco/game/util.cpp b/saco/game/util.cpp index 6f0f758..93231da 100644 --- a/saco/game/util.cpp +++ b/saco/game/util.cpp @@ -1501,12 +1501,15 @@ DWORD __stdcall CRC32FromUpcaseString(char *szString) -bool unnamed_100B4B50(VECTOR *vecPos) +bool FUNC_100B4B50(VECTOR *vecPos) { - return - vecPos->X < 20000.0f && vecPos->X > -20000.0f && + if( vecPos->X < 20000.0f && vecPos->X > -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; } diff --git a/saco/game/util.h b/saco/game/util.h index a6717df..98fd140 100644 --- a/saco/game/util.h +++ b/saco/game/util.h @@ -53,7 +53,7 @@ BOOL IsFileOrDirectoryExists(char * szPath); DWORD unnamed_100B6100(char *szString, int nMaxLen); -bool unnamed_100B4B50(VECTOR *vecPos); +bool FUNC_100B4B50(VECTOR *vecPos); BUILDING_TYPE * GamePool_GetBuilding(); DUMMY_TYPE * GamePool_GetDummy();