Author: sveinung
Date: Fri Jul 15 13:21:52 2016
New Revision: 33249

URL: http://svn.gna.org/viewcvs/freeciv?rev=33249&view=rev
Log:
Make action probability a range.

In some cases the player may know enough to predict the range the action
probability will be in even when the exact probability of success is
unknown. Making action probability a range allows it to be sent.

In some cases the probability of success can't be expressed as X * 0.5%.
Rounding it wrong can cause problems. Example: bug #24802 was caused by a
low probability being rounded to 0. 0 was seen as disabled.

Making action probability a range allows the completely unknown action
probability to become the regular value [0%, 100%].

See patch #7238

Modified:
    trunk/client/climisc.c
    trunk/client/gui-gtk-2.0/action_dialog.c
    trunk/client/gui-gtk-3.0/action_dialog.c
    trunk/client/gui-gtk-3.x/action_dialog.c
    trunk/client/gui-qt/dialogs.cpp
    trunk/client/gui-sdl2/action_dialog.c
    trunk/client/gui-stub/dialogs.c
    trunk/client/include/dialogs_g.h
    trunk/client/packhand.c
    trunk/common/actions.c
    trunk/common/actions.h
    trunk/common/fc_types.h
    trunk/common/networking/dataio_json.c
    trunk/common/networking/dataio_json.h
    trunk/common/networking/dataio_raw.c
    trunk/common/networking/dataio_raw.h
    trunk/common/networking/packets.def
    trunk/common/unit.h
    trunk/fc_version
    trunk/server/unithand.c
    trunk/server/unittools.c

[This mail would be too long, it was shortened to contain the URLs only.]

Modified: trunk/client/climisc.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/climisc.c?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/client/gui-gtk-2.0/action_dialog.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-2.0/action_dialog.c?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/client/gui-gtk-3.0/action_dialog.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.0/action_dialog.c?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/client/gui-gtk-3.x/action_dialog.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.x/action_dialog.c?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/client/gui-qt/dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/dialogs.cpp?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/client/gui-sdl2/action_dialog.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl2/action_dialog.c?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/client/gui-stub/dialogs.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-stub/dialogs.c?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/client/include/dialogs_g.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/include/dialogs_g.h?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/client/packhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/packhand.c?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/common/actions.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.c?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/common/actions.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.h?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/common/fc_types.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/fc_types.h?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/common/networking/dataio_json.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/networking/dataio_json.c?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/common/networking/dataio_json.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/networking/dataio_json.h?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/common/networking/dataio_raw.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/networking/dataio_raw.c?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/common/networking/dataio_raw.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/networking/dataio_raw.h?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/common/networking/packets.def
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/networking/packets.def?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/common/unit.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/unit.h?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/fc_version
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/fc_version?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=33249&r1=33248&r2=33249&view=diff

Modified: trunk/server/unittools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unittools.c?rev=33249&r1=33248&r2=33249&view=diff


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to