diff --git a/.vs/Speedy-Eggbert-2-Source-Code-Decomp/v17/.wsuo b/.vs/Speedy-Eggbert-2-Source-Code-Decomp/v17/.wsuo index cee895e..e8ca47c 100644 Binary files a/.vs/Speedy-Eggbert-2-Source-Code-Decomp/v17/.wsuo and b/.vs/Speedy-Eggbert-2-Source-Code-Decomp/v17/.wsuo differ diff --git a/.vs/Speedy-Eggbert-2-Source-Code-Decomp/v17/Browse.VC.db b/.vs/Speedy-Eggbert-2-Source-Code-Decomp/v17/Browse.VC.db index 10d1bc5..e7dc5d4 100644 Binary files a/.vs/Speedy-Eggbert-2-Source-Code-Decomp/v17/Browse.VC.db and b/.vs/Speedy-Eggbert-2-Source-Code-Decomp/v17/Browse.VC.db differ diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index b17a4d6..349f594 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/decor.cpp b/decor.cpp index 70ad522..1f66161 100644 --- a/decor.cpp +++ b/decor.cpp @@ -5871,6 +5871,21 @@ BOOL CDecor::IsMoveTraj(POINT pos) return (m_moveTraj[num] & 1 << num2) != 0; } +int CDecor::SearchDistRight(POINT pos, POINT dir, int type) +{ + int num = 0; + if (type == 36 || type == 39 || type == 41 || type == 42 || type == 93) + { + return 500; + } + pos.x = (pos.x + 32) / 64; + pos.y = (pos.y + 32) / 64; + while (pos.x >= 0 && pos.x < 100 && pos.y >= 0 && pos.y < 100 && !IsBlocIcon(m_decor[pos.x, pos.y]->icon)) + { + + } +} + BOOL CDecor::SearchDoor(int n, POINT cel, POINT blupi) { for (int i = 0; i < 100; i++) diff --git a/decor.h b/decor.h index 336e42d..a32a7dc 100644 --- a/decor.h +++ b/decor.h @@ -593,6 +593,8 @@ public: void FlushMoveTraj(); void SetMoveTraj(POINT pos); BOOL IsMoveTraj(POINT pos); + int SearchDistRight(POINT pos, POINT dir, int type); + BOOL IsVentillo(POINT pos); void BlupiStep(); BOOL DecorDetect(RECT rect); BOOL DecorDetect(RECT rect, BOOL bCaisse);