[Freeciv-Dev] (PR#2703) Fast focus patch]
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
fastfocus.diff
Description: fastfocus.diff
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#2703) Fast focus patch],
Jason Short via RT <=
|
|