mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
Add sameValue check.
Took 3 minutes
This commit is contained in:
parent
abc25a1a68
commit
331770009f
1 changed files with 4 additions and 2 deletions
|
|
@ -98,8 +98,10 @@ void Player::setConceded(bool _conceded)
|
||||||
|
|
||||||
void Player::setZoneId(int _zoneId)
|
void Player::setZoneId(int _zoneId)
|
||||||
{
|
{
|
||||||
zoneId = _zoneId;
|
if (zoneId != _zoneId) {
|
||||||
emit zoneIdChanged(zoneId);
|
zoneId = _zoneId;
|
||||||
|
emit zoneIdChanged(zoneId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::processPlayerInfo(const ServerInfo_Player &info)
|
void Player::processPlayerInfo(const ServerInfo_Player &info)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue