int64 fastcall CGeoData::FindGround(CGeoData *this, unsigned int x, unsigned int y, int…
Jump to turn (8)
- 1int64 fastcall CGeoData::FindGround(CGeoData this, unsigned int x, unsigned int
- 2CGeoCell fastcall CGeoData::GetBaseCellFromSector(CGeoData this, CGeoSector sect
- 3char fastcall CGeoData::GetCellIndexes(CGeoData this, unsigned int x, unsigned i
- 4CGeoCell fastcall CGeoData::GetBaseCell(CGeoData this, int z, CGeoCell cellarray
- 5Т.е он проверяет несколько секторов, верно?
- 6А какое значение оно возвращает? true или false?
- 7double fastcall CGeoData::GetVerticalLimit(CGeoData this, const FVector pos) { Q
- 8Чтобы убрать проверку, что надо сделать?
- User
__int64 __fastcall CGeoData::FindGround(CGeoData *this, unsigned int x, unsigned int y, int z) { _DWORD ebx1; // ebx _DWORD edi1; // edi _DWORD esi1; // esi _QWORD rbp1; // rbp _QWORD rax1; // rax __int64 result; // rax _QWORD rdx5; // rdx _DWORD eax8; // eax _QWORD rax9; // rax _QWORD za; // [rsp+20h] [rbp-28h]
rax1 = CGeoData::GetZone(this, ((int)(x + 327680) >> 15) + 10, ((int)(y + 0x40000) >> 15) + 10); if ( !rax1 ) { if ( errorcount_0 < 10 ) { CLog::Add( &Log, LOG_ERROR, "cannot get zone (%d, %d) at file[%s], line[%d]", x, y, "..\Shared\GeoData.cpp", 2895); AtomicUpdateUserPoint::Dump((_SETJMP_FLOAT128 *)2); ++errorcount_0; } return 0i64; } rdx5 = &rax1->m_data->sectors[(unsigned __int64)(unsigned __int8)((__int64)x >> 7)][(unsigned __int8)((__int64)y >> 7)]; if ( !rdx5 ) { CLog::Add( &Log, LOG_ERROR, "cannot get sector (%d, %d) at file[%s], line[%d]", x, y, "..\Shared\GeoData.cpp", 2908); return 0i64; } if ( (rdx5->m_BooleanFlag & 1) != 0 ) { eax8 = rdx5->m_DefaultCell.m_data; } else { rax9 = CGeoData::GetBaseCellFromSector(this, rdx5, x, y, z); if ( !rax9 ) { LODWORD(za) = y; CLog::Add( &Log, LOG_ERROR, "cannot get cell (%d, %d, %d) at file[%s], line[%d]", x, za, z, "..\Shared\GeoData.cpp", 2920); return 0i64; } eax8 = rax9->m_data; } return (GeoHeightMask_1 >> 1) & (unsigned int)(eax8 >> 1); } Можешь посмотреть, есть ли тут проверка по Z на наличие препятсивй?