Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2000:
[Freeciv-Dev] patch: allow events at (0,0) (PR#480)
Home

[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]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] patch: allow events at (0,0) (PR#480)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Wed, 26 Jul 2000 06:53:07 -0700 (PDT)

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

Attachment: event00_fix1.diff.gz
Description: GNU Zip compressed data


[Prev in Thread] Current Thread [Next in Thread]