Author: sveinung Date: Mon Jul 18 12:11:39 2016 New Revision: 33257 URL: http://svn.gna.org/viewcvs/freeciv?rev=33257&view=rev Log: Drop unknown action button mouse over help.
The action probability that used to be ?% is now [0%, 100%]. [0%, 100%] is easier to understand. Drop its custom action button mouse over help text. See patch #7473 Modified: branches/S2_6/common/actions.c Modified: branches/S2_6/common/actions.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/actions.c?rev=33257&r1=33256&r2=33257&view=diff ============================================================================== --- branches/S2_6/common/actions.c (original) +++ branches/S2_6/common/actions.c Mon Jul 18 12:11:39 2016 @@ -58,8 +58,6 @@ action_prob_is_signal(const struct act_prob probability); static inline bool action_prob_not_relevant(const struct act_prob probability); -static inline bool -action_prob_unknown(const struct act_prob probability); static inline bool action_prob_not_impl(const struct act_prob probability); @@ -376,10 +374,6 @@ /* Missing server support. No in game action will change this. */ astr_clear(&tool_tip); - } else if (action_prob_unknown(prob)) { - /* Missing in game knowledge. An in game action can change this. */ - astr_set(&tool_tip, - _("Starting to do this may currently be impossible.")); } else if (prob.min == prob.max) { /* TRANS: action probability of success. Given in percentage. * Resolution is 0.5%. */ @@ -1388,20 +1382,6 @@ } /************************************************************************** - Returns TRUE iff the given action probability represents that the player - currently doesn't have enough information to find the real value. - - It is caused by the probability depending on a rule that depends on game - state the player don't have access to. It may be possible for the player - to later gain access to this game state. -**************************************************************************/ -static inline bool -action_prob_unknown(const struct act_prob probability) -{ - return probability.min == 0 && probability.max == 200; -} - -/************************************************************************** Returns TRUE iff the given action probability represents a special signal value rather than a regular action probability value. **************************************************************************/ _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits