diff --git a/.vs/Speedy-Eggbert-2-Source-Code-Decomp/v17/.wsuo b/.vs/Speedy-Eggbert-2-Source-Code-Decomp/v17/.wsuo index 09ebf18..4df33c3 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 eb25793..59c8be1 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 bc0205a..84d3d95 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/decor.cpp b/decor.cpp index ae16ab1..9fa4601 100644 --- a/decor.cpp +++ b/decor.cpp @@ -6347,6 +6347,22 @@ void CDecor::MoveObjectStepLine(int i) } } +void CDecor::DynamiteStart(int i, int dx, int dy) +{ + POINT posStart = m_moveObject[i]->posStart; + posStart.x -= 34; + posStart.y -= 34; + posStart.x += dx; + posStart.y -= dy; + ObjectStart(posStart, 8, 0); + if (dx == 0 && dy == 0) + { + PlaySound(10, posStart); + m_decorAction = 1; + m_decorPhase = 0; + } +} + 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 896ab7b..d907e0d 100644 --- a/decor.h +++ b/decor.h @@ -602,6 +602,7 @@ public: void ModifDecor(POINT pos, int icon); void MoveObjectStep(); void MoveObjectStepLine(int i); + void DynamiteStart(int i, int dx, int dy); void BlupiStep(); BOOL DecorDetect(RECT rect); BOOL DecorDetect(RECT rect, BOOL bCaisse); diff --git a/network.cpp b/network.cpp index 032598e..3979279 100644 --- a/network.cpp +++ b/network.cpp @@ -12,19 +12,19 @@ CNetwork::CNetwork() { - m_field0_0x0; - m_field8_0x20; - m_field7_0x1c; + m_pDP; + m_pDPID; + m_bUnk1C; + m_pContext; + m_pSessions2; m_pUnkC; m_pSessions; - m_field3_0xc; - m_field4_0x10; - m_field5_0x14; - m_field6_0x18; + m_pUnk18; } CNetwork::~CNetwork() { + LPDIRECTPLAY2 lpDP; } void CNetwork::FreeSessionList() diff --git a/network.h b/network.h index 133e622..3a51c14 100644 --- a/network.h +++ b/network.h @@ -6,6 +6,7 @@ public: BOOL Create(); void FreeSessionList(); + void FreeSessionList2(); protected: IDirectPlay2 m_pDP;