Author: sveinung Date: Thu Aug 11 02:24:40 2016 New Revision: 33559 URL: http://svn.gna.org/viewcvs/freeciv?rev=33559&view=rev Log: Qt client: ask for target for "Do..."
Change "Do..." to always ask the player for a target tile. A 2nd call (like pressing "d" twice) will call the old "Do..." against own tile like it used to do. See patch #7579 Modified: branches/S2_6/client/gui-qt/menu.cpp Modified: branches/S2_6/client/gui-qt/menu.cpp URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/menu.cpp?rev=33559&r1=33558&r2=33559&view=diff ============================================================================== --- branches/S2_6/client/gui-qt/menu.cpp (original) +++ branches/S2_6/client/gui-qt/menu.cpp Thu Aug 11 02:24:40 2016 @@ -1917,7 +1917,7 @@ break; case ORDER_DIPLOMAT_DLG: - if (can_units_act_against_own_tile(punits)) { + if (units_can_do_action(punits, ACTION_ANY, TRUE)) { i.value()->setEnabled(true); } break; @@ -2147,7 +2147,7 @@ ***************************************************************************/ void mr_menu::slot_action() { - key_unit_action_select(); + key_unit_action_select_tgt(); } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits