mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CDeathWindow::PushBack()
This commit is contained in:
parent
b544ded1f2
commit
555b116b01
@ -28,6 +28,17 @@ void CDeathWindow::AddMessage(CHAR *a1, CHAR *a2, DWORD a3, DWORD a4, BYTE a5)
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CDeathWindow::PushBack()
|
||||
{
|
||||
int x=0;
|
||||
while(x!=(MAX_DISP_DEATH_MESSAGES - 1)) {
|
||||
memcpy(&m_DeathWindowEntries[x],&m_DeathWindowEntries[x+1],sizeof(DEATH_WINDOW_ENTRY));
|
||||
x++;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
PCHAR CDeathWindow::SpriteIDForWeapon(BYTE byteWeaponID)
|
||||
{
|
||||
switch (byteWeaponID) {
|
||||
|
@ -1,6 +1,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define MAX_DISP_DEATH_MESSAGES 5
|
||||
|
||||
#pragma pack(1)
|
||||
typedef struct _DEATH_WINDOW_ENTRY
|
||||
{
|
||||
char _gap0[59];
|
||||
|
||||
} DEATH_WINDOW_ENTRY;
|
||||
|
||||
#define SPECIAL_ENTRY_CONNECT 200
|
||||
#define SPECIAL_ENTRY_DISCONNECT 201
|
||||
|
||||
@ -9,10 +18,14 @@
|
||||
class CDeathWindow
|
||||
{
|
||||
private:
|
||||
char _gap0[331];
|
||||
char _gap0[4];
|
||||
DEATH_WINDOW_ENTRY m_DeathWindowEntries[MAX_DISP_DEATH_MESSAGES];
|
||||
char _gap012B[24];
|
||||
BOOL field_14B;
|
||||
ID3DXFont *field_14F;
|
||||
ID3DXFont *field_153;
|
||||
|
||||
void PushBack();
|
||||
|
||||
public:
|
||||
void AddMessage(CHAR *a1, CHAR *a2, DWORD a3, DWORD a4, BYTE a5);
|
||||
|
Loading…
Reference in New Issue
Block a user