Re: Auctions and the protocol
Albert Astals Cid <[email protected]>
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
>On Fri, Jun 06, 2003 at 10:35:01PM +0200, Albert 'TSDgeos' Astals Cid wrote:
>> Add pTmp->setBoolProperty("can_auction", m_auctionsEnabled); to
>> Game::start(Player *pInput)
>>
>> Add p->setBoolProperty("can_auction", m_auctionsEnabled); to
>> Game::addPlayer(Player *p, bool isMaster)
>
>Not sure if that works properly, wouldn't the auction button be enabled at
>all times when auctions are enabled? I think m_auctionsEnabled is a
>configuration setting, not a variable that changes througout the game.
True, but auctions don't change with the game, i mean, at the beginning they
are enabled or they are not, they can't be enabled during the play of the
game.
So changing
m_auctionEstate->setEnabled(player->canAuction());
to
m_auctionEstate->setEnabled(player->canAuction() && player->hasTurn());
in atlantik.cpp should ensure that auctions are enabled only when they should,
isn't it?