mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 09:48:13 +08:00
[saco] Match CNetGame::SetMapIcon and ResetMapIcons; DisableMapIcon must be inline
This commit is contained in:
1 parent
0d9fc30d3b
commit
cf7fdd28bb
2 files changed
+8
-8
No files matched your search
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user