[Freeciv-commits] r30045 - /trunk/common/fc_types.h

2015-10-11 Thread sveinung84
Author: sveinung Date: Sun Oct 11 17:13:17 2015 New Revision: 30045 URL: http://svn.gna.org/viewcvs/freeciv?rev=30045=rev Log: The enum direction8 is used in unit orders and therefore in the network protocol. Document it. See patch #6401 Modified: trunk/common/fc_types.h Modified:

[Freeciv-commits] r30046 - in /branches/S2_6: common/map.c common/map.h server/unithand.c

2015-10-11 Thread sveinung84
Author: sveinung Date: Sun Oct 11 17:13:53 2015 New Revision: 30046 URL: http://svn.gna.org/viewcvs/freeciv?rev=30046=rev Log: Order system: avoid unsafe is_valid_dir() usage If a direction is valid given certain game settings was stored in an array in patch #6325. The function is_valid_dir()

[Freeciv-commits] r30047 - /branches/S2_6/common/fc_types.h

2015-10-11 Thread sveinung84
Author: sveinung Date: Sun Oct 11 17:14:02 2015 New Revision: 30047 URL: http://svn.gna.org/viewcvs/freeciv?rev=30047=rev Log: The enum direction8 is used in unit orders and therefore in the network protocol. Document it. See patch #6401 Modified: branches/S2_6/common/fc_types.h Modified:

[Freeciv-commits] r30044 - in /trunk: common/map.c common/map.h server/unithand.c server/unittools.c

2015-10-11 Thread sveinung84
Author: sveinung Date: Sun Oct 11 17:13:06 2015 New Revision: 30044 URL: http://svn.gna.org/viewcvs/freeciv?rev=30044=rev Log: order system: avoid unsafe is_valid_dir() usage If a direction is valid given certain game settings was stored in an array in patch #6325. The function is_valid_dir()

[Freeciv-commits] r30050 - /trunk/ai/default/aitools.c

2015-10-11 Thread sveinung84
Author: sveinung Date: Sun Oct 11 19:19:34 2015 New Revision: 30050 URL: http://svn.gna.org/viewcvs/freeciv?rev=30050=rev Log: ai: hostile actors shouldn't fight en route The function dai_fill_unit_paramdai_fill_unit_param() sets the path finding parameters for an AI unit in some situations.

[Freeciv-commits] r30049 - /trunk/ai/default/aitools.c

2015-10-11 Thread sveinung84
Author: sveinung Date: Sun Oct 11 19:19:16 2015 New Revision: 30049 URL: http://svn.gna.org/viewcvs/freeciv?rev=30049=rev Log: ai: force setting tile behavior for new tasks Have the compiler warn when a new ai_unit_task is added without explicitly setting the tile behavior in

[Freeciv-commits] r30051 - in /trunk: ./ ai/default/ client/gui-gtk-2.0/ client/gui-gtk-3.0/ client/gui-qt/ client/gui-sdl/ client/gui-sdl2/ c...

2015-10-11 Thread sveinung84
Author: sveinung Date: Sun Oct 11 19:19:46 2015 New Revision: 30051 URL: http://svn.gna.org/viewcvs/freeciv?rev=30051=rev Log: Split Recycle Unit from regular disbanding Introduce the new action Recycle Unit. It takes over disbanding a unit in a city so 50% of the shields spent to produce it is

[Freeciv-commits] r30048 - in /trunk: client/control.c client/goto.c common/fc_types.h

2015-10-11 Thread sveinung84
Author: sveinung Date: Sun Oct 11 19:18:45 2015 New Revision: 30048 URL: http://svn.gna.org/viewcvs/freeciv?rev=30048=rev Log: Define the constant DIR8_ORIGIN Use it, rather than the magic value -1, in situations where the lack of a direction in an enum direction8 variable means the tile a

[Freeciv-commits] r30054 - /branches/S2_6/ai/default/aitools.c

2015-10-11 Thread sveinung84
Author: sveinung Date: Sun Oct 11 19:21:56 2015 New Revision: 30054 URL: http://svn.gna.org/viewcvs/freeciv?rev=30054=rev Log: ai: hostile actors shouldn't fight en route The function dai_fill_unit_paramdai_fill_unit_param() sets the path finding parameters for an AI unit in some situations.

[Freeciv-commits] r30053 - /branches/S2_6/ai/default/aitools.c

2015-10-11 Thread sveinung84
Author: sveinung Date: Sun Oct 11 19:21:48 2015 New Revision: 30053 URL: http://svn.gna.org/viewcvs/freeciv?rev=30053=rev Log: ai: force setting tile behavior for new tasks Have the compiler warn when a new ai_unit_task is added without explicitly setting the tile behavior in

[Freeciv-commits] r30052 - in /branches/S2_6: client/control.c client/goto.c common/fc_types.h

2015-10-11 Thread sveinung84
Author: sveinung Date: Sun Oct 11 19:21:40 2015 New Revision: 30052 URL: http://svn.gna.org/viewcvs/freeciv?rev=30052=rev Log: Define the constant DIR8_ORIGIN Use it, rather than the magic value -1, in situations where the lack of a direction in an enum direction8 variable means the tile a