Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] (PR#2703) Fast focus patch]
Home

[Freeciv-Dev] (PR#2703) Fast focus patch]

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#2703) Fast focus patch]
From: "Jason Short via RT" <rt@xxxxxxxxxxxxxx>
Date: Fri, 3 Jan 2003 04:04:38 -0800
Reply-to: rt@xxxxxxxxxxxxxx

Here is the original patch.

-----Forwarded Message-----

From: A.L. <Arnstein.Lindgard@xxxxxxx>
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Fast focus patch
Date: 14 Dec 2002 18:44:19 +0100


Fast Focus Patch
----------------
REQUIRES:         freeciv-cvs-Dec-13
APPLIES TO:       all clients, server
CONTAINS:

Problem:
When clicking a unit, client requests from server that unit be in
focus and waits needlessly. Server wakes up unit if it was sentried
etc., or had an activity like Auto or Build Mine -- and then allows
client to focus it. Lag will only augment the poor player's annoyance.
The idea that server informs client of an airplane exhausted is also
unneccessary and doesn't warrant this communication.

New behaviour:
Client immediately focuses on unit, and makes it idle. Then, client
instructs server to idle unit, but only if unit was not already idle.

Removed functions in clients:
  request_unit_selected()
  handle_advance_focus()

Removed function in server:
  advance_unit_focus()

In server and clients:
  In other functions, removed all references to the bit "select_it"
  or "select_unit", which is no longer sent over the network.

  Removed PACKET_ADVANCE_FOCUS.

I think it's a clean sweep.


Arnstein


Attachment: fastfocus.diff
Description: fastfocus.diff


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#2703) Fast focus patch], Jason Short via RT <=