diff --git a/cockatrice/src/player.cpp b/cockatrice/src/player.cpp index 007a609a..09a3104e 100644 --- a/cockatrice/src/player.cpp +++ b/cockatrice/src/player.cpp @@ -1721,7 +1721,7 @@ void Player::cardMenuAction() cardList.append(qgraphicsitem_cast(sel.takeFirst())); QList< const ::google::protobuf::Message * > commandList; - if (a->data().toInt() <= 4) + if (a->data().toInt() <= (int) cmClone) for (int i = 0; i < cardList.size(); ++i) { CardItem *card = cardList[i]; switch (static_cast(a->data().toInt())) { diff --git a/servatrice/servatrice.ini.example b/servatrice/servatrice.ini.example index 9c3b17b7..b8e8f626 100644 --- a/servatrice/servatrice.ini.example +++ b/servatrice/servatrice.ini.example @@ -18,15 +18,16 @@ user=servatrice password=foobar [rooms] -size=1 -1\name="General room" -1\description="Play anything here." -1\autojoin=true -1\joinmessage="This message is only here to show that rooms can have a join message." -1\game_types\size=3 -1\game_types\1\name="GameType1" -1\game_types\2\name="GameType2" -1\game_types\3\name="GameType3" +method=config +roomlist\size=1 +roomlist\1\name="General room" +roomlist\1\description="Play anything here." +roomlist\1\autojoin=true +roomlist\1\joinmessage="This message is only here to show that rooms can have a join message." +roomlist\1\game_types\size=3 +roomlist\1\game_types\1\name="GameType1" +roomlist\1\game_types\2\name="GameType2" +roomlist\1\game_types\3\name="GameType3" [game] max_game_inactivity_time=120