[saco] Match CNetGame::SetMapIcon and ResetMapIcons; DisableMapIcon must be inline

This commit is contained in:
ricardoofnl committed 2026-09-03 05:27:21 +07:00
1 parent 0d9fc30d3b
commit cf7fdd28bb
2 files changed
+8 -8

No files matched your search

+2 -7
View File
@@ -114,6 +114,7 @@ DWORD CNetGame::GetTime()
//-----------------------------------------------------------
// Puts a personal marker using any of the radar icons on the map
// MATCH
void CNetGame::SetMapIcon(BYTE byteIndex, float fX, float fY, float fZ, BYTE byteIcon, DWORD dwColor, int iStyle)
{
if (byteIndex >= 100) return;
@@ -125,16 +126,10 @@ void CNetGame::SetMapIcon(BYTE byteIndex, float fX, float fY, float fZ, BYTE byt
//-----------------------------------------------------------
// Removes the Map Icon
// MATCH
void CNetGame::DisableMapIcon(BYTE byteIndex)
{
if (byteIndex >= 100) return;
ScriptCommand(&disable_marker, m_dwMapIcon[byteIndex]);
m_dwMapIcon[byteIndex] = NULL;
}
//----------------------------------------------------
// MATCH
void CNetGame::ResetMapIcons()
{
BYTE i;
+6 -1
View File
@@ -103,7 +103,12 @@ public:
void ResetMapIcons();
void SetMapIcon(BYTE byteIndex, float fX, float fY, float fZ, BYTE byteIcon, DWORD dwColor, int iStyle);
void DisableMapIcon(BYTE byteIndex); // .text:10008FB0
// MATCH
inline void DisableMapIcon(BYTE byteIndex) { // .text:10008FB0
if (byteIndex >= 100) return;
ScriptCommand(&disable_marker, m_dwMapIcon[byteIndex]);
m_dwMapIcon[byteIndex] = NULL;
};
CMenuPool * GetMenuPool() { return m_pPools->pMenuPool; }; // .text:100084F0
void Packet_NoFreeIncomingConnections(Packet *p); // .text:10008DB0