mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-18 02:09:11 -08:00
Compare commits
2 Commits
first-run-
...
zach_fix_4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
784213978b | ||
|
|
5b55ff883a |
@@ -110,9 +110,9 @@ void PlayerArea::setPlayerZoneId(int _playerZoneId)
|
||||
}
|
||||
|
||||
Player::Player(const ServerInfo_User &info, int _id, bool _local, bool _judge, TabGame *_parent)
|
||||
: QObject(_parent), game(_parent), movingCardsUntil(false), shortcutsActive(false), lastTokenDestroy(true),
|
||||
lastTokenTableRow(0), id(_id), active(false), local(_local), judge(_judge), mirrored(false), handVisible(false),
|
||||
conceded(false), zoneId(0), dialogSemaphore(false), deck(nullptr)
|
||||
: QObject(_parent), game(_parent), movingCardsUntil(false), isCreatingArrow(false), shortcutsActive(false),
|
||||
lastTokenDestroy(true), lastTokenTableRow(0), id(_id), active(false), local(_local), judge(_judge),
|
||||
mirrored(false), handVisible(false), conceded(false), zoneId(0), dialogSemaphore(false), deck(nullptr)
|
||||
{
|
||||
userInfo = new ServerInfo_User;
|
||||
userInfo->CopyFrom(info);
|
||||
@@ -1967,6 +1967,7 @@ void Player::eventRollDie(const Event_RollDie &event)
|
||||
|
||||
void Player::eventCreateArrow(const Event_CreateArrow &event)
|
||||
{
|
||||
isCreatingArrow = false;
|
||||
ArrowItem *arrow = addArrow(event.arrow_info());
|
||||
if (!arrow) {
|
||||
return;
|
||||
@@ -3199,7 +3200,13 @@ void Player::actSetPT()
|
||||
|
||||
void Player::actDrawArrow()
|
||||
{
|
||||
if (isCreatingArrow) {
|
||||
return;
|
||||
}
|
||||
|
||||
isCreatingArrow = true;
|
||||
if (!game->getActiveCard()) {
|
||||
isCreatingArrow = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -254,6 +254,7 @@ private:
|
||||
QString previousMovingCardsUntilExpr = {};
|
||||
FilterString movingCardsUntilFilter;
|
||||
|
||||
bool isCreatingArrow;
|
||||
bool shortcutsActive;
|
||||
int defaultNumberTopCards = 1;
|
||||
int defaultNumberTopCardsToPlaceBelow = 1;
|
||||
|
||||
Reference in New Issue
Block a user