Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] more handle_unit_move_request() cleanup
Home

[Freeciv-Dev] more handle_unit_move_request() cleanup

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] more handle_unit_move_request() cleanup
From: Thue Janus Kristensen <thue@xxxxxxx>
Date: Fri, 5 May 2000 23:11:18 +0200

After this one the function is actually understandable and readable :P.
Try to compare it from before this and my previous patch and after this
patch :)

Removes a few unneccesary checks for unit aliveness.
Add one new feature: If the unit is on a goto and is trying to attack a
unit, it will abort unless on the very last step of the goto. Not
perfect, but a quick fix for most accidental attacks. (this will not
interfeare with the AI)

-Thue

Attachment: handle_unit_move_request-May-05.diff
Description: Text Data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] more handle_unit_move_request() cleanup, Thue Janus Kristensen <=