Author: sveinung Date: Fri Aug 22 15:20:10 2014 New Revision: 25996 URL: http://svn.gna.org/viewcvs/freeciv?rev=25996&view=rev Log: Focus on the acting unit before asking for extra information about a spy action
The spy action targeted sabotage requires the player to select a target. The spy actions bribe unit and incite city requires the player to give a green light to spend the money. Focus on the actor before asking the player for feed back so it is clear who asks. See patch #5063 Modified: trunk/client/packhand.c Modified: trunk/client/packhand.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/packhand.c?rev=25996&r1=25995&r2=25996&view=diff ============================================================================== --- trunk/client/packhand.c (original) +++ trunk/client/packhand.c Fri Aug 22 15:20:10 2014 @@ -3872,6 +3872,9 @@ case DIPLOMAT_BRIBE: if (punit && client.conn.playing && !client.conn.playing->ai_controlled) { + /* Focus on the unit so the player knows where it is */ + unit_focus_set(pdiplomat); + popup_bribe_dialog(pdiplomat, punit, cost); } else { log_debug("Bad target %d.", target_id); @@ -3881,6 +3884,9 @@ case DIPLOMAT_INCITE: if (pcity && client.conn.playing && !client.conn.playing->ai_controlled) { + /* Focus on the unit so the player knows where it is */ + unit_focus_set(pdiplomat); + popup_incite_dialog(pdiplomat, pcity, cost); } else { log_debug("Bad target %d.", target_id); @@ -3980,6 +3986,9 @@ improvement_index(pimprove))); } improvement_iterate_end; + /* Focus on the unit so the player knows where it is */ + unit_focus_set(pdiplomat); + popup_sabotage_dialog(pdiplomat, pcity); } else { log_debug("Can't issue orders"); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits