/[eliot]/eliot/wxwin/mainframe.cc
ViewVC logotype

Diff of /eliot/wxwin/mainframe.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by ipkiss, Sat Nov 5 17:33:06 2005 UTC revision 1.14 by ipkiss, Sat Nov 5 23:22:42 2005 UTC
# Line 363  MainFrame::UpdateStatusBar() Line 363  MainFrame::UpdateStatusBar()
363      text = wxT("");      text = wxT("");
364      if (m_game)      if (m_game)
365      {      {
366          text << wxT("coup:") << (m_game->getNRounds() + 1)          text << wxT("coup:") << (m_game->getNTurns() + 1)
367              << wxT(" ")              << wxT(" ")
368              << wxT("points:") << m_game->getPlayer(0).getPoints();              << wxT("points:") << m_game->getPlayer(0).getPoints();
369      }      }
# Line 439  MainFrame::OnMenuGameOpen(wxCommandEvent Line 439  MainFrame::OnMenuGameOpen(wxCommandEvent
439              return;              return;
440          }          }
441      }      }
442      string r = m_game->getPlayedRack(m_game->getNRounds());      string r = m_game->getPlayedRack(m_game->getNTurns());
443      rack->SetValue(wxU(r.c_str()));      rack->SetValue(wxU(r.c_str()));
444      results->DeleteAllItems();      results->DeleteAllItems();
445      UpdateStatusBar();      UpdateStatusBar();
# Line 919  MainFrame::Play(int n) Line 919  MainFrame::Play(int n)
919          ((Training*)m_game)->playResult(n);          ((Training*)m_game)->playResult(n);
920      }      }
921    
922      if (m_game->getNRounds() >= 0)      if (m_game->getNTurns() >= 0)
923      {      {
924          string r = m_game->getPlayerRack(0,true);          string r = m_game->getPlayerRack(0,true);
925          rack->SetValue(wxU(r.c_str()));          rack->SetValue(wxU(r.c_str()));

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26