[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 奥塞罗 0.2.0 发布



> 似乎wxothello无法记住 player 是 null,比如打开 wxothello, Game->Players 选择  null
> vs null, 再进去的时候又变成 human vs human 了。
哦,对,是bug了。不过不影响network功能。附件是补丁。下本版本将解决。

感谢~

--
http://hellwolf.cublog.cn
gpg --keyserver pgp.mit.edu --recv-key 0x6B174C6F

"The medium is the message."
-- Marshall McLuhan
*** othello/wx/playerchoosedialog.cpp	22 Jun 2007 14:50:31 +0800	1.3
--- othello.fix/wx/playerchoosedialog.cpp	28 Jun 2007 12:40:44 +0800	
***************
*** 50,55 ****
--- 50,57 ----
      a_selection = 0;
      b_selection = 0;
  
+     if(player_a == "null")a_selection = 1;
+     if(player_b == "null")b_selection = 1;
      for(PlayerPluginManager::plugin_iterator iter = ppm->plugin_begin();
          iter != ppm->plugin_end();
          ++iter){
***************
*** 90,96 ****
             "and right click to pass"));
      }else if(s == 1){
        XRCCTRL(*this, "dialog_choose_players_playerinfo_name", wxStaticText)->SetLabel
!         (playerslist->GetString(0));
        XRCCTRL(*this, "dialog_choose_players_playerinfo_summary", wxStaticText)->SetLabel
          (_("Null Player"));
        XRCCTRL(*this, "dialog_choose_players_playerinfo_description", wxStaticText)->SetLabel
--- 92,98 ----
             "and right click to pass"));
      }else if(s == 1){
        XRCCTRL(*this, "dialog_choose_players_playerinfo_name", wxStaticText)->SetLabel
!         (playerslist->GetString(1));
        XRCCTRL(*this, "dialog_choose_players_playerinfo_summary", wxStaticText)->SetLabel
          (_("Null Player"));
        XRCCTRL(*this, "dialog_choose_players_playerinfo_description", wxStaticText)->SetLabel

Reply to: