]> git.pond.sub.org Git - empserver/commitdiff
Clean up some trailing whitespace
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 21 Apr 2013 10:58:26 +0000 (12:58 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 04:57:57 +0000 (06:57 +0200)
32 files changed:
doc/coding
info/Attacking.t
info/Autofish.t
info/Flak.t
info/History.t
info/Hitchance.t
info/INFO.MAC
info/Kill.t
info/Moving.t
info/Plane-types.t
info/Quick-ref.t
info/Sector-types.t
info/Ship-types.t
info/Suggestions.t
info/Unit-types.t
info/capital.t
info/distribute.t
info/findsubj.pl
info/ldump.t
info/ls2html.pl
info/nation.t
info/newspaper.t
info/order.t
info/qorder.t
info/relations.t
info/reset.t
info/set.t
info/shark.t
src/lib/commands/cens.c
src/lib/lwp/lwp.c
src/lib/subs/maps.c
src/lib/subs/satmap.c

index 184e1b5cfa25bbcb405cc435b7c26fa8b53718c6..f365835ceaf6cefd70c65b4481c6cd2b97b47d1a 100644 (file)
@@ -622,5 +622,3 @@ These are all the things I fixed when changing the bad to the good:
 - There should always be a space on either side of a {
 - There should always be a new line after a ;
 - The closing function bracket should be on a line by itself
-
-
index 7b6f42be5dddc71c4e079694473cbbe8f8f97201..7ec0036d2f6ed56d9c7e43f26efa6710cb5f58d5 100644 (file)
@@ -63,7 +63,7 @@ Attack:  You are limited by the mobility of the attacking sector
          according to the mob-cost to move the mil into the target sector.
 Assault: If the target sector contains mil, then you may only attack with
          1/10th of your mil on board, unless your ship has "semi-land"
-         capability in which case it is 1/4th, -or- if your ship has 
+         capability in which case it is 1/4th, -or- if your ship has
          "land" capability in which case there is no limitation.
 Board:   When boarding from a sector, the sector must have mob.  When
          boarding from either a ship or a sector, the number of mil
index d9960c0cc1d39e70d389eae12fcf8abae01c22a8..475c50a3453bf7c3c8a1958dabf4ca2f461b9eca 100644 (file)
@@ -47,12 +47,12 @@ as your fishing grounds.
     You can also use a global '*' or a fleet letter here.
     "order * level 1 start food 30"
     "order * level 1 end   food 30"
-   
+
     "order F level 1 start food 30"
     "order F level 1 end   food 30"
 
     NOTE: You should set BOTH start and end fields to insure
-          autofish will work correctly and set them at the 
+          autofish will work correctly and set them at the
           same levels!
 
     NOTE: Fishing boats and oil derricks are a special case
@@ -75,7 +75,7 @@ For oil derricks, step 2b becomes:
 .nf
     "order 0 level 1 start food 30"
     "order 1 level 2 end   oil 1"
-    
+
     Note: If food is not required, food cargo levels can be zeroed.
 
     Note: In this configuration, the end oil level is not important
index fdc03214a2d28d2fb60fde89e54f23bdae56d81f..fed7e8c76cd34bda0fd3dc71d6e4aa3b45344c7a 100644 (file)
@@ -136,4 +136,3 @@ For the above, use this table:
 and a flakscale of 1.75
 .fi
 .SA "bomb, fly, recon, paradrop, nation, Planes, Interception, Combat"
-
index ae504d83c95c2b6df63827828ec96f6ce03d3237..b3e0a2291fdb84e17c86337f307962713363bf93 100644 (file)
@@ -153,7 +153,7 @@ improvements to many commands, rewrote missile, navigation, and march
 code.  Consolidated launch/bomb and missile/plane interdiction so that
 hit chance and damage is the same whether it's a mission or done "by
 hand".  Added collateral damage, interdiction nuke detonation,
-"friendly" trade relations, BIG_CITY, ATT_INTERDICT, 
+"friendly" trade relations, BIG_CITY, ATT_INTERDICT,
 Consolidated sail, navi, and order.  Added toggle, flash, wall,
 shutdown, strength.  Other contributers:
                        Chad Zabel (ship anti-missile defense)
@@ -219,7 +219,7 @@ place to keep the server source free forever.  Yee-haw!
 
 In addition, the server was made run-time configurable (yes, including
 WORLD_X and WORLD_Y) so that you didn't have to re-build an entire server
-each time you changed an option (you just have to rebuild the world 
+each time you changed an option (you just have to rebuild the world
 sometimes. ;-) )
 
 2006 Empire 4.3, Wolfpack
index 7485f4d9ecab0f696f3f0c1a9afe16f9c999b7c4..fbf805365188aee42f069cca29a5e0bd86ce768b 100644 (file)
@@ -105,7 +105,7 @@ where
   mintech = min tech level required to build plane
 and
   placc = plane accuracy
-and if the target is a ship and the plane is an ASW plane, then 
+and if the target is a ship and the plane is an ASW plane, then
   placc = placc - 20
 and if the target is a ship and the plane does not have tactical capability
   placc = placc + 35
index b3aabb4f672e48508291b7a3e5593aa55dd403c1..7610a861788105b6face52201c3c6311babfebd5 100644 (file)
@@ -20,7 +20,7 @@
 .\"
 .\" pop off the enviornment
 .\"
-.de TH         
+.de TH
 .ds Ts \\$1\\\\0:\\\\0\\$2
 .ev 1
 .cs \\*N
@@ -39,7 +39,7 @@
 .de EX          \" Start of macro EX
 .nf
 .ti +0.3i       \" Temporary indent of 3/10 inch
-.\" Constant spacing for EF font = 26/36 ems 
+.\" Constant spacing for EF font = 26/36 ems
 .cs \*(EF 26
 .nr CS 1        \" Indicate constant spacing on
 .lg 0           \" Turn off ligature mode
index 02da30aa2cb8fe7e9f16294f5df1b6a934fe5bb3..f522a4425dfb6b3f03805330d0598380142586a9 100644 (file)
@@ -10,11 +10,11 @@ if you type in the following.
 .s1
 .nf
 .in +1i
-telnet your.local.empire.machine 6666 
-coun <NAME>  
-pass <PASSWORD> 
+telnet your.local.empire.machine 6666
+coun <NAME>
+pass <PASSWORD>
 kill
-quit  
+quit
 .in -1i
 .fi
 .s1
index 45f1e455d34446ade55e8270978f8c03c5408330..13f0a2f545a40c4e5383f11c89c729925e83ddc5 100644 (file)
@@ -33,4 +33,3 @@ the unit or plane id.  So for example, to load ship #1 with land unit
 .EX "load land 1 2"
 .s1
 .SA "Mobility, Transportation"
-
index 4298c3e1e3418b18c1a8d567d1d8dca2b8f476a4..28d946ab1e6c1c4995c324929f628a37cad619dd 100644 (file)
@@ -81,7 +81,7 @@ bombers  These were basically an intermediate stage between the light &
          These planes were essentially compromises, and were phased out
          as time went on. They could not bomb as precisely as a light
          bomber, nor as heavily as a heavy bomber.
-      
+
 transports
 
          Initially, these were basically similar to civilian airliners.
index 564ffb0ea321183c615ca6904d0597c7eb974fe9..344a5ef9f187ab30ab9146e92df744bd7b09f28d 100644 (file)
@@ -11,7 +11,7 @@ Sector-types:
     -  wilderness            h  harbor                 l  library/school
     c  capital/city          w  warehouse              e  enlistment center
     p  park                  u  uranium mine           !  headquarters
-    COMMUNICATIONS           *  airfield               
+    COMMUNICATIONS           *  airfield
     +  highway               a  agribusiness           FINANCIAL
     )  radar installation    o  oil field              b  bank
                              j  light manufacturing
index 509df9b9560409e927c393d963cea30a83ee5514..3d6ded2c49e61e2681101ef8e5d507e4709e3b78 100644 (file)
  -  wilderness            h  harbor                 l  library/school
  ~  plains                w  warehouse              e  enlistment center
  c  capital/city          u  uranium mine           !  headquarters
- p  park                  *  airfield                        
+ p  park                  *  airfield
                           a  agribusiness           FINANCIAL
  COMMUNICATIONS           o  oil field              b  bank
- +  highway               j  light manufacturing    
+ +  highway               j  light manufacturing
  )  radar installation    k  heavy manufacturing
- #  bridge head           %  refinery            
- =  bridge span         
+ #  bridge head           %  refinery
+ =  bridge span
  @  bridge tower
 .FI
 .s1
index 6c67a58b1a709254d157c85e9c593529fd074ca9..b4cf4373c708e46a98b5f08d7649b1d30c731721 100644 (file)
@@ -54,7 +54,7 @@ battleship    While the names change, the purpose remained the same: a ship
                fighting men at any desired point. Small squadrons of these
                ships could (and did) take over towns, attack fortresses by
                surprise, and generally make life miserable for the defense).
-               
+
                The pre-dreadnought was a battleship with a limited number
                (usually 4) of heavy guns, numerous lighter guns ('secondary'
                and 'tertiary' armament), and heavy armor on vital portions
@@ -77,7 +77,7 @@ battleship    While the names change, the purpose remained the same: a ship
 
                The battleship of the 1918-1945 period was faster, and carried
                a new AA capacity, especially in the latter years of the period.
-               
+
                After 1945, the class died out (except for 4 ships)
 
                For our purposes, a battleship 1 is a ship of the line, a
@@ -97,7 +97,7 @@ battlecruiser These special ships existed in the 1905-1920 period, prior to
                With this (and with the introduction of oil fuel, which made
                battleships their equal in speed), they were phased out.
 
-ASW cruiser    These ships came into being in the 1965-present period in 
+ASW cruiser    These ships came into being in the 1965-present period in
                response to a need for a large ASW ship to carry ASW helicopters
                and command equipment. It typically carries full ASW armament,
                as well as a minor ASuW capability.
@@ -113,7 +113,7 @@ missile cruiser     These ships range in size from 100t missile boats (the modern
                The missile frigate and cruiser also serve as SAM ships.
 
 landing craft  These ships are relatively unique, being used mainly in the
-               1942-1950 period. Before that, landings were carried out by 
+               1942-1950 period. Before that, landings were carried out by
                frigates, ships-of-the-line, light & heavy cruisers, &
                pre-dreadnoughts, all of which could land a large number of
                men. With the introduction of the concept of beach-defense by
@@ -144,7 +144,7 @@ escort carrier      These ships are designed for various purposes. At first,
 submarine      The submarine was originally intended, in the 1900-1910 period,
                to fill the same role as the torpedo boat, using stealth to
                get to the battleships instead of speed. It was a strictly
-               defensive weapon, without much speed or endurance. 
+               defensive weapon, without much speed or endurance.
 
                In the 1910-1925 period, the sub was much enlarged, and use in
                a combination anti-battleship (sank at least 20)/anti-commerce
index 47a2fd96f07e9c03e22a2b9ddced9cc49005db68..76f2628faa036dc6d85fc4ff29afebd44f80ffbb 100644 (file)
@@ -37,7 +37,7 @@ tip the balance in favour of the attacker.
 
                6) Is it important?
 
-       If the change involves adding detail to the game, is the detail 
+       If the change involves adding detail to the game, is the detail
 important enough? Does the change go beyond the general level of Empire
 abstraction? For example, a change to allow you to name each of your mil
 would obviously be beyond Empire's general detail level. A command to name
index e72282d127b9b985df1e3a9b5e83b3900c3dd686..d7c892e3f0f3ae7b24ab3d1386d12d43e57e702c 100644 (file)
@@ -60,7 +60,7 @@ mech artillery        but less damage. Hvy artillery has less mobility, but more
                All artillery is bad at attacking, but can usually defend in
                a not-horrible fashion. Artillery units are, however, pretty
                vulnerable to shelling and bombing. (except for mech artillery)
-               
+
 engineers      Engineers are the most versatile unit. They can lay mines,
 mech engineers clear mines, defend well, attack well, work on sectors, etc.
                The drawbacks? Well, they're VERY expensive and not very
index 9f790be556004d64932b974175fc749af26e2cbe..8af8909eec10362fa7c43e01d19c0a9c0610845e 100644 (file)
@@ -38,7 +38,7 @@ Some effects happen right away, and last until you use
 the \*Qcapital\*U command to create a new capital. The effects are:
 
 .NF
-3) You will not be able to use many commands (use the 
+3) You will not be able to use many commands (use the
    'list of commands' command to see the pitiful few you may still use)
 
 4) The rate at which you gain BTUs will dramatically decrease (see
index 6f59b30b3b8f6300cc208c2bcdcc0fb72dee8a47..2eb958ae7755a2e7e2918e988464ab7e7b18e64b 100644 (file)
@@ -12,7 +12,7 @@ will replace the existing distribution sector.
 For example,
 .EX distribute 2,0 8,4
 .NF
-highway at 2,0 delivers to 8,4. 
+highway at 2,0 delivers to 8,4.
 Distribution sector? 7,-1
 highway 2,0 new path distributes to 7,-1 (cost 0.200)
         Current best path is 'gguh'
index bbbd6f8aaf65e994ccc9b7f7fdfabe8bed1a9a08..6627518909b6da738bfe5f47316c17b530fa73b5 100644 (file)
@@ -26,7 +26,7 @@
 #   ---
 #
 #   findsubj.pl: Find info subjects, update subjects.mk
-#  
+#
 #   Known contributors to this file:
 #      Ken Stevens (when it was still info.pl)
 #      Markus Armbruster, 2006-2008
@@ -140,7 +140,7 @@ sub parse_file {
 
     open(F, "<$filename")
        or die "Can't open $filename: $!";
-  
+
     $_ = <F>;
     if (/^\.TH (\S+) (\S.+\S)$/) {
        $chapter{$topic} = $1;
index a9f584c16a22c760151bb72b9c244cad46ad53cb..31e9af93627570fa263c9d7168b4d1b96eaf7c73 100644 (file)
@@ -45,7 +45,7 @@ shown here (no partial pattern matching is done.)
    fuel    obsolete, retained for backwards compatibility, always zero
    tech    technology of unit
    retr    retreat %age of unit
-   react   current reaction radius 
+   react   current reaction radius
    xl      # of x-light planes loaded onto unit
    nland   # of land units loaded onto unit
    land    land unit # this unit is loaded on
index b61230d515826b37644cfe1c76dd3681b525f726..85a8b39b4615bc3c59d0d353a04eefec28c879a2 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl 
+#!/usr/local/bin/perl
 
 use strict;
 use warnings;
index 5529ab53dfcce011e4c4c9bae7b5e949f2e16c50..358784d2e7638ea1115199ef3b6b333e751c370e 100644 (file)
@@ -20,7 +20,7 @@ Capital is 100% efficient and has 87 civilians and 80 military
 Education..........  9.20       Happiness.......  2.01
 Technology......... 16.81       Research........  19.82
 Technology factor : 30.81%      Max population : 556
+
 Plague factor :   1.05%
 Max safe population for civs/uws: 427/483
 Happiness needed is 4.385283
index 4138c0840392dae6eceda9623c8db894ddc9cc56..58f2ab1378beb7f7029a4ec481c999382da4b4c7 100644 (file)
@@ -24,31 +24,31 @@ Which will print the news for the last two days.
 You can select whose news to see with the ?actor or ?victim selectors,
 and what news to see with the ?action selector.  Actions are:
 .nf
-     1)  Successful sector attack       
-     2)  Unsuccessful attack            
-     3)  Spy shot                       
-     4)  Telegram sent                  
-     5)  Treaty signing                 
-     6)  Loan made                      
-     7)  Loan repaid                    
-     8)  Goods sold                     
-     9)  Airspace violated              
-     10) Artillery fire on sectors      
-     11) Artillery fire on ships        
-     12) Attacking unowned land         
-     13) Ship torpedoed                 
-     14) Gunners firing in self-defense 
-     15) Breaking sanctuary             
-     16) Planes bombing sectors         
-     17) Planes bombing ships           
-     18) Successful boarding actions    
-     19) Unsuccessful boarding actions  
-     21) Collecting on loans            
-     22) Considering treaty violation   
-     23) Actual treaty violation        
-     25) Ships hitting mines            
-     26) Alliance declaration            
-     28) War declarations               
+     1)  Successful sector attack
+     2)  Unsuccessful attack
+     3)  Spy shot
+     4)  Telegram sent
+     5)  Treaty signing
+     6)  Loan made
+     7)  Loan repaid
+     8)  Goods sold
+     9)  Airspace violated
+     10) Artillery fire on sectors
+     11) Artillery fire on ships
+     12) Attacking unowned land
+     13) Ship torpedoed
+     14) Gunners firing in self-defense
+     15) Breaking sanctuary
+     16) Planes bombing sectors
+     17) Planes bombing ships
+     18) Successful boarding actions
+     19) Unsuccessful boarding actions
+     21) Collecting on loans
+     22) Considering treaty violation
+     23) Actual treaty violation
+     25) Ships hitting mines
+     26) Alliance declaration
+     28) War declarations
      29) Alliance dissolving
      30) War ending
      31) Plague outbreaks
index 2da8f54a9f00389b6d2c22b3d2d359de91adfe77..d42857ea2e00e21ab61d8f82456f87736c2c9952 100644 (file)
@@ -37,7 +37,7 @@ again.
 .s1
 To declare an order you have 3 options.
 .NF
-     1) Order a ship to any sector on the map.  
+     1) Order a ship to any sector on the map.
        When it arrives it will clear its orders.
 
      2) Order a ship to any sector, load goods,
@@ -50,7 +50,7 @@ To declare an order you have 3 options.
 
 Example:  You have a cargo ship (#6) in your harbor at sector 6,0
 You want to move good between that harbor and another harbor at
-sector 14,0. 
+sector 14,0.
 
  order 6 d 6,0 14,0
 
@@ -80,7 +80,7 @@ scuttle themselves at sea.
 .EX order <SHIP/FLEET> l <hold> <start/end> <COMM> <amount>
 .s1
 Set cargo Levels.
-.NF 
+.NF
 Example: Cargo ship #109 is at your harbor in sector 10,0.
 You have agreed to trade 200 lcm and 100 hcm to your friend and
 he will give you 100 shells each update.  His harbor is at -10,2.
@@ -88,9 +88,9 @@ Using 'order declare' you set up your start point 10,0 and end point -10,2
 
 order 109 l 1 start lcm   200
 order 109 l 2 start hcm   100
-order 109 l 1 end   shell 100  
+order 109 l 1 end   shell 100
 
-When your finished the output would look like this. 
+When your finished the output would look like this.
 
 sorder 109
 shp #   type           x,y     start   end     len  eta
@@ -100,7 +100,7 @@ qorder 109
 shp #   type           [Starting]  (Ending)
   109   cargo ship 2   [1-l:200 2-h:100 ] , (1-s:100 )
 
-.FI 
+.FI
 .s1
 AutoNav Features.
 .s1
index 9cad2125ea2f2c300a4a6f000d446d4be2ea7522..695648d82fa7bb2d699c303af5b928bb3b49e758 100644 (file)
@@ -15,7 +15,7 @@ The report indicates:
 shp#     ship type           [Starting]  ,  (Ending)
    6 cargo ship 1      [1-s:50 2-l:500]  ,  ( 1-g:50 )
   54 cargo ship 1                   [ ]  ,  (1-h:1000)
-1003 destroyer 2               [1-s:40]  ,  ( ) 
+1003 destroyer 2               [1-s:40]  ,  ( )
 .FI
 This report reads.
 Cargo Ship #6 will sail to its starting sector, displayed
index 22197033a62ed86f3de650996dde3bcfea8bd754..3de29987eb0572b5d934b69fc930b758b58272f5 100644 (file)
@@ -15,7 +15,7 @@ report.
 
        0) POGO                  Allied    Allied
        1) 1                     Neutral   Neutral
-       2) Groonland             At War    Hostile   
+       2) Groonland             At War    Hostile
 
 .FI
 .EX relations 2
@@ -25,7 +25,7 @@ report.
 
        0) POGO                  Neutral   Neutral
        1) 1                     Allied    Neutral
-       3) MGM                   Hostile   At War   
+       3) MGM                   Hostile   At War
 
 .FI
 .s1
index 643a4f11b64928ee8cb337694e1971f4718e4f1a..1793db9ac6ce831faabb05d2b06844da45848b41 100644 (file)
@@ -10,4 +10,3 @@ commodities that are on the market.
 your goods off the market and return them to your harbor or warehouse.
 .sp
 .SA "buy, sell, Commerce"
-
index 9c9ecb9604429e4692cec02b0c14a7e2911688b9..b0cd1aa7d9d6a779d8bdff16de4fdc33a301e649 100644 (file)
@@ -21,4 +21,3 @@ Note that ships are not \*Qdelivered\*U to the purchaser,
 but planes, land units and nukes are.
 .sp
 .SA "trade, Commerce"
-
index aee8d216926241be2876c694e1201228bdf9daa6..ac53ae7d02a635bdaf351378de2680f05f580d22 100644 (file)
@@ -12,4 +12,3 @@ of the switch.  After the loan is transfered you may collect on it as
 normal.
 .sp
 .SA "offer, consider, collect, financial, Loans"
-
index 9da280421f4486f2dd2ce55afb5d6c98ff7c1ab4..9b8a025445a52f39f4c58c03fa079d7409ad71aa 100644 (file)
@@ -131,4 +131,3 @@ cens_hdr(void)
        pr("ter ");
     pr("fall coa\n");
 }
-
index 1daa88c27694cae5fad92478301cf84aecb46883..4f3c7f1b125c1e480716d2a41343ec6b62fa6499 100644 (file)
@@ -428,4 +428,3 @@ lwpSetName(struct lwpProc *proc, char *name)
 
     proc->name = strdup(name);
 }
-
index 80d414370db70d9d33866709f85b40cd2e1f97cd..d8677fe62fa35070a238ffd6be5060c60148d9d1 100644 (file)
@@ -90,7 +90,7 @@ do_map(int bmap, int unit_type, char *arg1, char *arg2)
        return res;
 
     map_flags = parse_map_flags(bmap, arg2);
-    if (map_flags < 0) 
+    if (map_flags < 0)
        return RET_SYN;
 
     if (map_flags & MAP_BMAP_REVERT)
@@ -451,7 +451,7 @@ display_region_map(int bmap, int unit_type, coord curx, coord cury,
            return res;
 
        map_flags = parse_map_flags(bmap, arg2);
-       if (map_flags < 0) 
+       if (map_flags < 0)
            return RET_SYN;
     } else {
        snxtsct_around(&ns, curx, cury);
index 731179a84a2a3a2477d5cba8523ba93b547d441a..d5e2957de8c01b33325b7a4de8edab98ffe0f5c6 100644 (file)
@@ -99,7 +99,6 @@ satmap(int x, int y, int eff, int range, int flags, int type)
        snxtsct_dist(&ns, x, y, range);
        if (type == EF_SECTOR && !snxtsct_use_condarg(&ns))
            return RET_SYN;
-           
 
        blankfill(radbuf, &ns.range, 1);
        if (flags & P_S) {