Skip to content
Snippets Groups Projects
Commit 9d9ce41f authored by mtarnow's avatar mtarnow
Browse files

updated nof_predicted initialization

parent 37f2d674
No related branches found
No related tags found
1 merge request!17finalize common
......@@ -129,7 +129,7 @@ void TrickEstimationPanel::buildThisPlayer(wxGridBagSizer* sizer, game_state* ga
mePanelSizer_hor->Add(playerName, 0, wxALIGN_CENTER);
// if we have not submitted estimate yet
if (me->get_nof_tricks() == -1)
if (me->get_nof_predicted() == -1)
{
if (gameState->get_current_player() == me)
{
......
......@@ -5,7 +5,7 @@
// constructor for client
player::player(const std::string& name) : unique_serializable() {
this->_player_name = new serializable_value<std::string>(name);
this->_nof_predicted = new serializable_value<int>(0);
this->_nof_predicted = new serializable_value<int>(-1);
this->_nof_tricks = new serializable_value<int>(0);
this->_scores = std::vector<serializable_value<int>*>(0);
this->_hand = new hand();
......@@ -48,7 +48,7 @@ player::player(const std::string& id, const std::string& name) :
this->_player_name = new serializable_value<std::string>(name);
this->_scores = std::vector< serializable_value<int>*>(0);
this->_hand = new hand();
this->_nof_predicted = new serializable_value<int>(0);
this->_nof_predicted = new serializable_value<int>(-1);
this->_nof_tricks = new serializable_value<int>(0);
}
......@@ -120,7 +120,7 @@ unsigned int player::get_nof_cards() const noexcept
#ifdef WIZARD_SERVER
void player::setup_round()
{
_nof_predicted->set_value(0);
_nof_predicted->set_value(-1);
_nof_tricks->set_value(0);
//delete _hand;
//_hand = new hand();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment