From 943fc3e5e86f44c0008151c0876865f2b5a1d653 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 21 Sep 2024 22:24:44 +0800 Subject: [PATCH] [server] Implement/match `CGangZonePool::StopFlashForPlayer(...)` --- server/gangzonepool.cpp | 7 +++++++ server/gangzonepool.h | 1 + 2 files changed, 8 insertions(+) diff --git a/server/gangzonepool.cpp b/server/gangzonepool.cpp index b4903a6..e0ec117 100644 --- a/server/gangzonepool.cpp +++ b/server/gangzonepool.cpp @@ -96,3 +96,10 @@ void CGangZonePool::FlashForAll(WORD wZone, DWORD dwColor) pNetGame->BroadcastData(RPC_ScrFlashGangZone, &bsParams, INVALID_PLAYER_ID, 2); } +void CGangZonePool::StopFlashForPlayer(PLAYERID playerId, WORD wZone) +{ + RakNet::BitStream bsParams; + bsParams.Write(wZone); + pNetGame->SendToPlayer(RPC_ScrStopFlashGangZone, &bsParams, playerId, 2); +} + diff --git a/server/gangzonepool.h b/server/gangzonepool.h index fb831a6..ac4aecb 100644 --- a/server/gangzonepool.h +++ b/server/gangzonepool.h @@ -20,6 +20,7 @@ public: void HideForAll(WORD wZone); void FlashForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor); void FlashForAll(WORD wZone, DWORD dwColor); + void StopFlashForPlayer(PLAYERID playerId, WORD wZone); }; //----------------------------------------------------