fix: mark player as not a seeker when H&S is disabled
If a player is a seeker and then disables H&S, they should no longer be considered as a seeker by other players. (Because staying as a seeker will kill hiders when touching them).
This commit is contained in:
parent
4339847da5
commit
27b9a095f7
|
@ -622,7 +622,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;
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue