mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-21 21:17:25 +00:00
fix: Nexus Tower Combat Challenge can be started twice if two players start it at the same time (#1147)
* Nexus Tower Dummy Challenge Dual Instance Fix Fix for dual instance starting when two players hit start on the challenge at the same time. * Changed GetVar to GetNetworkVar Changed the if statement to GetNetworkVar boolean of bInUse rather than GetVar boolean of bInUse
This commit is contained in:
parent
d1316cfc9f
commit
0610fe99f8
@ -43,7 +43,7 @@ void NtCombatChallengeServer::OnFireEventServerSide(Entity* self, Entity* sender
|
||||
|
||||
|
||||
void NtCombatChallengeServer::OnMessageBoxResponse(Entity* self, Entity* sender, int32_t button, const std::u16string& identifier, const std::u16string& userData) {
|
||||
if (identifier == u"PlayButton" && button == 1) {
|
||||
if (identifier == u"PlayButton" && button == 1 && !self->GetNetworkVar<bool>(u"bInUse")) {
|
||||
self->SetNetworkVar(u"bInUse", true);
|
||||
|
||||
self->SetVar(u"playerID", sender->GetObjectID());
|
||||
|
Loading…
Reference in New Issue
Block a user