foot race player flag fix (#1125)

and include fixes
This commit is contained in:
Aaron Kimbrell 2023-06-23 08:50:15 -05:00 committed by GitHub
parent 787dac7cd9
commit 41898bef86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@
#include <string>
#include <vector>
#include <cstdint>
class RawChunk;
struct RawMesh;

View File

@ -6,8 +6,7 @@ void BaseFootRaceManager::OnStartup(Entity* self) {
// TODO: Add to FootRaceStarter group
}
void BaseFootRaceManager::OnFireEventServerSide(Entity* self, Entity* sender, std::string args, int32_t param1,
int32_t param2, int32_t param3) {
void BaseFootRaceManager::OnFireEventServerSide(Entity* self, Entity* sender, std::string args, int32_t param1, int32_t param2, int32_t param3) {
const auto splitArguments = GeneralUtils::SplitString(args, '_');
if (splitArguments.size() > 1) {
@ -37,7 +36,7 @@ void BaseFootRaceManager::OnFireEventServerSide(Entity* self, Entity* sender, st
if (character != nullptr) {
character->SetPlayerFlag(115, false);
if (param2 != -1) // Certain footraces set a flag
character->SetPlayerFlag(static_cast<uint32_t>(param2), true);
character->SetPlayerFlag(param2, true);
}
StopActivity(self, player->GetObjectID(), 0, param1);

View File

@ -3,6 +3,7 @@
#include <string>
#include <vector>
#include <cstdint>
class Command;
class Event;