Merge pull request #53 from Istador/isit-with-active

fix: mark player as not a seeker when H&S is disabled
This commit is contained in:
Jack Garrard 2023-08-24 23:42:13 -07:00 committed by GitHub
commit 9bf07b3e0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -609,7 +609,7 @@ void Client::sendTagInfPacket() {
packet->mUserID = sInstance->mUserID; packet->mUserID = sInstance->mUserID;
packet->isIt = hsMode->isPlayerIt(); packet->isIt = hsMode->isPlayerIt() && hsMode->isModeActive();
packet->minutes = curInfo->mHidingTime.mMinutes; packet->minutes = curInfo->mHidingTime.mMinutes;
packet->seconds = curInfo->mHidingTime.mSeconds; packet->seconds = curInfo->mHidingTime.mSeconds;

View file

@ -84,6 +84,8 @@ void HideAndSeekMode::begin() {
playGuideLyt->end(); playGuideLyt->end();
GameModeBase::begin(); GameModeBase::begin();
Client::sendTagInfPacket();
} }
void HideAndSeekMode::end() { void HideAndSeekMode::end() {
@ -109,6 +111,8 @@ void HideAndSeekMode::end() {
playGuideLyt->appear(); playGuideLyt->appear();
GameModeBase::end(); GameModeBase::end();
Client::sendTagInfPacket();
} }
void HideAndSeekMode::update() { void HideAndSeekMode::update() {