[Freeciv-Dev] patch: allow events at (0,0) (PR#480)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Currently, event notifications (not counting E_NOEVENT) are specified
as having "no location" by specifying map coordinates (x,y) = (0,0).
This is not good because (0,0) is a genuine location, and genuine
events may occur there.
This patch changes to use (-1,-1) for "no location". Actual test is
done as y inside or outside [0,map.ysize). (This catches case that
(-1,-1) becomes (255,255) via unsigned packet code.) Uses non-mandatory
capability tag "event00_fix" for backward compatability: new server sends
(0,0) to old clients, and new client converts (0,0) from old servers.
-- David
event00_fix1.diff.gz
Description: GNU Zip compressed data
- [Freeciv-Dev] patch: allow events at (0,0) (PR#480),
David Pfitzner <=
|
|