Update of /cvsroot/netrek/client/netrekxp/src In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv23497/src Modified Files: data.c defaults.c feature.c Log Message: Added support for server feature packet TIPS. Added netrekrc option "showTips". Index: feature.c =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/src/feature.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- feature.c 8 Jun 2009 22:26:07 -0000 1.33 +++ feature.c 11 Jun 2009 22:10:30 -0000 1.34 @@ -105,6 +105,7 @@ {"AUTO_WEAPONS", &F_auto_weapons, 'S', 1, 0, 0}, {"SP_RANK", &F_sp_rank, 'S', 1, 0, 0}, {"SP_LTD", &F_sp_ltd, 'S', 1, 0, 0}, + {"TIPS", &F_tips, 'S', 1, 0, 0}, {0, 0, 0, 0, 0, 0} }; @@ -131,6 +132,8 @@ value = useFullShipInfo; else if (!strcmp(f->name, "FULL_WEAPON_RESOLUTION")) value = useFullWeapInfo; + else if (!strcmp(f->name, "TIPS")) + value = showTips; else if (!strcmp(f->name, "SP_GENERIC_32")) { value = useGeneric32; Index: defaults.c =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/src/defaults.c,v retrieving revision 1.107 retrieving revision 1.108 diff -u -d -r1.107 -r1.108 --- defaults.c 9 Jun 2009 02:09:45 -0000 1.107 +++ defaults.c 11 Jun 2009 22:10:30 -0000 1.108 @@ -763,6 +763,12 @@ NULL } }, + {"showTips", &showTips, RC_BOOL, + { + "Clear MOTD and show server generated tip messages", + NULL + } + }, {"showTractorPressor", &showTractorPressor, RC_BOOL, { "Draw lines for tractor/pressor", @@ -1777,6 +1783,7 @@ showArmy = intDefault ("showArmy", showArmy); showCloakers = booleanDefault ("showCloakers", showCloakers); autoPhaser = booleanDefault ("autoPhaser", autoPhaser); + showTips = booleanDefault ("showTips", showTips); redrawDelay = intDefault ("redrawDelay", redrawDelay); planetHighlighting = booleanDefault ("planetHighlighting", planetHighlighting); rotatePlanets = booleanDefault ("rotatePlanets", rotatePlanets); Index: data.c =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/src/data.c,v retrieving revision 1.133 retrieving revision 1.134 diff -u -d -r1.133 -r1.134 --- data.c 9 Jun 2009 02:23:00 -0000 1.133 +++ data.c 11 Jun 2009 22:10:30 -0000 1.134 @@ -722,6 +722,7 @@ int F_auto_weapons = 0; int F_sp_rank = 0; int F_sp_ltd = 0; +int F_tips = 0; int F_terrain = 0; /* paradise */ int F_armies_shipcap = 0; /* paradise */ @@ -876,5 +877,6 @@ int fullBitmapRotation = 1; /* draw old bitmap sets to all angles */ int hideConsole = 0; /* show console window or not */ int autoPhaser = 1; /* phaser exact location of enemy target closest to cursor */ +int showTips = 0; /* clear MOTD and show server generated tip messages */ struct context *context;