mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-07 03:04:05 +00:00
fix: weekly leaderboards and shooting gallery high score (#1719)
* fix them again * name * Update GameMessages.cpp * Update SGCannon.cpp * Use chrono library instead
This commit is contained in:
@@ -342,7 +342,8 @@ void SGCannon::StartGame(Entity* self) {
|
||||
|
||||
auto* player = Game::entityManager->GetEntity(self->GetVar<LWOOBJID>(PlayerIDVariable));
|
||||
if (player != nullptr) {
|
||||
GetLeaderboardData(self, player->GetObjectID(), GetActivityID(self), 1);
|
||||
// The client cant accept more than 10 results.
|
||||
GetLeaderboardData(self, player->GetObjectID(), GetConstants().activityID, 10);
|
||||
LOG("Sending ActivityStart");
|
||||
GameMessages::SendActivityStart(self->GetObjectID(), player->GetSystemAddress());
|
||||
|
||||
|
Reference in New Issue
Block a user