From 473e9a76e5a14d5c7b75053aca5b905b31954787 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 21 Sep 2024 22:25:08 +0800 Subject: [PATCH] [server] Implement/match `CGangZonePool::StopFlashForAll(...)` --- server/gangzonepool.cpp | 6 ++++++ server/gangzonepool.h | 1 + 2 files changed, 7 insertions(+) diff --git a/server/gangzonepool.cpp b/server/gangzonepool.cpp index e0ec117..43e98b4 100644 --- a/server/gangzonepool.cpp +++ b/server/gangzonepool.cpp @@ -103,3 +103,9 @@ void CGangZonePool::StopFlashForPlayer(PLAYERID playerId, WORD wZone) pNetGame->SendToPlayer(RPC_ScrStopFlashGangZone, &bsParams, playerId, 2); } +void CGangZonePool::StopFlashForAll(WORD wZone) +{ + RakNet::BitStream bsParams; + bsParams.Write(wZone); + pNetGame->BroadcastData(RPC_ScrStopFlashGangZone, &bsParams, INVALID_PLAYER_ID, 2); +} diff --git a/server/gangzonepool.h b/server/gangzonepool.h index ac4aecb..d8be82b 100644 --- a/server/gangzonepool.h +++ b/server/gangzonepool.h @@ -21,6 +21,7 @@ public: void FlashForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor); void FlashForAll(WORD wZone, DWORD dwColor); void StopFlashForPlayer(PLAYERID playerId, WORD wZone); + void StopFlashForAll(WORD wZone); }; //----------------------------------------------------