diff --git a/saco/deathwindow.cpp b/saco/deathwindow.cpp index e2d2c8d..3dc3339 100644 --- a/saco/deathwindow.cpp +++ b/saco/deathwindow.cpp @@ -9,7 +9,25 @@ int GetFontWeight(); CDeathWindow::CDeathWindow(IDirect3DDevice9 *pD3DDevice) { - // TODO: CDeathWindow::CDeathWindow + int x=0; + m_pD3DFont = NULL; + m_pWeaponFont = NULL; + m_pWeaponFont2 = NULL; + m_pSprite = NULL; + field_14B = FALSE; + field_14F = NULL; + field_153 = NULL; + field_0 = 1; + + m_pD3DDevice = pD3DDevice; + + CreateFonts(); + + // Init the chat window lines to 0 + while(x!=MAX_DISP_DEATH_MESSAGES) { + memset(&m_DeathWindowEntries[x],0,sizeof(DEATH_WINDOW_ENTRY)); + x++; + } } //---------------------------------------------------- diff --git a/saco/deathwindow.h b/saco/deathwindow.h index dd9ded5..75eb64c 100644 --- a/saco/deathwindow.h +++ b/saco/deathwindow.h @@ -22,7 +22,7 @@ typedef struct _DEATH_WINDOW_ENTRY class CDeathWindow { private: - char _gap0[4]; + int field_0; DEATH_WINDOW_ENTRY m_DeathWindowEntries[MAX_DISP_DEATH_MESSAGES]; int m_iLongestNickLength; // In screen units, longest nick length; LONG field_12F;