mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
protocol changes, menu cleanups, phase button speed improvement
This commit is contained in:
parent
ab3858239f
commit
890740bcc9
19 changed files with 514 additions and 442 deletions
|
|
@ -158,7 +158,7 @@ void Client::readLine()
|
|||
|
||||
// XXX Parametergültigkeit überprüfen
|
||||
if (prefix == "list_players")
|
||||
playerlist << new ServerPlayer(val[0].toInt(), val[1]);
|
||||
playerlist << new ServerPlayer(val[0].toInt(), val[1], val[2].toInt());
|
||||
else if (prefix == "list_counters")
|
||||
{ }
|
||||
else if (prefix == "list_zones")
|
||||
|
|
@ -185,10 +185,10 @@ void Client::readLine()
|
|||
|
||||
void Client::setStatus(const ProtocolStatus _status)
|
||||
{
|
||||
ProtocolStatus oldStatus = status;
|
||||
status = _status;
|
||||
if (oldStatus != _status)
|
||||
if (_status != status) {
|
||||
status = _status;
|
||||
emit statusChanged(_status);
|
||||
}
|
||||
}
|
||||
|
||||
void Client::msg(const QString &s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue