Update of /cvsroot/netrek/client/netrekxp/resources/docs
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv14570/resources/docs

Modified Files:
	netrekrc 
Log Message:
This lengthy patch contains one groundbreaking item - allowing user to
configure directly the size of the local and map windows.  Most of this
patch fixes all the problems that needed to be solved to make this happen.
First off, it was necessary to have the netrekrc defaults read in BEFORE
windows are generated.  So in both cowmain. and playback.c, the order
of newwin() and resetdefaults() were exchanged.  This created a problem
though in the netrekrc Windows Allowed Message settings required the
window to actually exist first, so this was yanked out of the resetdefaults()
routine and placed into newwin().  It was also copied over to the reread
netrekrc function, so that rereading netrekrc will update the WAMs.
Half-finished code for rechecking windows geometry after reading defaults
is now obsolete, and a comment has been left to that effect.
This exchange also fixes one of the problems with richText.  The netrekrc
richText option now works, as it controls what sort of message windows
are created.  Still buggy, but at least it's mostly functional.
Getting back to the initial goal, WINSIDE and SCALE were moved from
defines to variables.  This required some changes to be made.  Any static
variable which relied on WINSIDE had to be moved into functions.  This
was not so difficult, as it just required some view/fullview variables to be
redefined in the star redraw functions, and tts_ypos had to be changed a 
bit so that the preferred value was not the value in data.c but rather a
value based on WINSIDE.
With WINSIDE now a variable, the checkGeometry function can now set
WINSIDE to match the geometry in the user's netrekrc file.  Some (ok
a LOT) of work still needs to be done, to separate WINSIDE into 2 
variables, TWINSIDE and GWINSIDE, so local and map can be different
size squares.
Testing WINSIDE=1000 revealed that the star sectors did not scale properly,
and indeed it was a design flaw which needed to be fixed.  Star sectors now
are defined to be the size of the local window, and the star density remains
constant no matter what size window.  As it is now possible to have GWIDTH
divided by star sectors != integer, it was necessary to put in some additonal
checks against drawing stars outside of galactic bounds, and to add an 
additional star sector in either direction to handle the case where we need
a fraction of a star sector to fill in space (i.e if WINSIDE = 1000, local stretches
40000 galactic units, that makes galaxy 2.5 star sectors wide, and since most
things get rounded down, we need to create 2.5 + 1 = 3 star sectors).  It turns
out the old code made 4x as many star sectors as there was galaxy, for some
odd reason, so this is a nice improvement actually!
Since the local window can now be expanded, I added in a dashed line to
show the old 20000x20000 local scale, because some data is not sent beyond
this (ie other people's weapons).  A new INFORANGE constant is defined, and
if WINSIDE > INFORANGE, we draw these dashed lines to indicate fog of war.
The SMALL_SCREEN option, which wasn't functional anyways, was removed
as it is now obsolete.
New draw line function W_MakeDashedLine for making a line using the
dashed pen.
Added in a debug statement to ignore feature packet settings to test the
new infoborg features.

Index: netrekrc
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/resources/docs/netrekrc,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- netrekrc	4 Apr 2007 04:06:37 -0000	1.51
+++ netrekrc	5 Apr 2007 12:57:22 -0000	1.52
@@ -574,6 +574,9 @@
 
 
 # Window placements section
+# Local and map windows MUST be square.  Size can be adjusted.
+# If sizing downwards, don't forget to remap any windows nested
+# inside these windows, such as team select and quit windows.
 
 netrek.parent:          netrek
 netrek.geometry:        1024x768
@@ -822,7 +825,7 @@
 # Keys that will trigger macro without going to macro mode
 singleMacro: EF
 
-macro.0.A:%    __    __   ______        __   Bug fixes, hockey improvements,
+macro.0.A:%    __    __   ______        __   Bug fixes, anti-packet loss stuff,
 macro.0.A:%   /  \  / /__/_  __/______ / /__ observers see all weapons, etc.
 macro.0.A:%  / /\ \/ / -_)/ / / __/ -_)  '_/ Plus 50 updates/sec support! 
 macro.0.A:% /_/  \__/\__//_/ /_/  \__/_/\_\ XP 2006, v1.3, released March 2007