Author: sveinung
Date: Mon Jul 18 11:57:45 2016
New Revision: 33256

URL: http://svn.gna.org/viewcvs/freeciv?rev=33256&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:
    trunk/common/actions.c

Modified: trunk/common/actions.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.c?rev=33256&r1=33255&r2=33256&view=diff
==============================================================================
--- trunk/common/actions.c      (original)
+++ trunk/common/actions.c      Mon Jul 18 11:57:45 2016
@@ -66,8 +66,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);
 
@@ -626,10 +624,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%. */
@@ -2795,20 +2789,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

Reply via email to