(svn r5136) Fix various style bugs:
authortron
Mon, 05 Jun 2006 18:10:43 +0000
changeset 3971 2116cd6db7fd
parent 3970 f85b8d4d4e0f
child 3972 259fcd6cfd9c
(svn r5136) Fix various style bugs:
- Trailing whitespace
- Trailing empty lines
- Missing newline at EOF
- Missing svn:eol-style native
docs/Howto_compile_lng_files_from_CLI.txt
docs/Manual.txt
docs/OSX_install_instructions.txt
docs/Readme_Mandrake_Linux.txt
docs/directmusic.txt
elrail.c
known-bugs.txt
newgrf_spritegroup.c
os/win32/installer/TTD to OpenTTD Transition Guide.txt
scripts/readme.txt
settings.c
table/elrail_data.h
unmovable_map.h
yapf.txt
yapf/follow_track.cpp
yapf/unittest/test_autocopyptr.h
yapf/unittest/test_binaryheap.h
yapf/unittest/test_fixedsizearray.h
yapf/unittest/test_hashtable.h
yapf/unittest/test_yapf.h
yapf/unittest/unittest.cpp
yapf/unittest/unittest.h
yapf/yapf_common.cpp
yapf/yapf_ship.cpp
--- a/docs/Howto_compile_lng_files_from_CLI.txt	Mon Jun 05 18:00:37 2006 +0000
+++ b/docs/Howto_compile_lng_files_from_CLI.txt	Mon Jun 05 18:10:43 2006 +0000
@@ -46,4 +46,3 @@
 gcc strgen/strgen.c rev.o -o strgen/strgen -DUNIX -DWITH_REV (this is the one the makefile uses)
 
 you now have a program called strgen in the strgen directory
-
--- a/docs/Manual.txt	Mon Jun 05 18:00:37 2006 +0000
+++ b/docs/Manual.txt	Mon Jun 05 18:10:43 2006 +0000
@@ -2,9 +2,9 @@
 
 1 Obtaining OpenTTD.
 
-You can obtain built binaries of OpenTTD for the 4 supported platforms - Win32, Linux,-x86, BeOS 5 and MacOS-X from the projects Sourceforge page, at http://sourceforge.net/projects/openttd . For the non-Win32 builds you will need libSDL.so, libpng.so and zlib.so compiled for your platform. Some builds will include these. 
+You can obtain built binaries of OpenTTD for the 4 supported platforms - Win32, Linux,-x86, BeOS 5 and MacOS-X from the projects Sourceforge page, at http://sourceforge.net/projects/openttd . For the non-Win32 builds you will need libSDL.so, libpng.so and zlib.so compiled for your platform. Some builds will include these.
 
-If you use another platform, such as FreeBSD, which has POSIX file i/o and an SDL port, you should be able to build OpenTTD from its source. This is available in the proejcts Subversion repository at svn://svn.openttd.com . The module name is "trunk". 
+If you use another platform, such as FreeBSD, which has POSIX file i/o and an SDL port, you should be able to build OpenTTD from its source. This is available in the proejcts Subversion repository at svn://svn.openttd.com . The module name is "trunk".
 
 1.1 Building OpenTTD.
 
@@ -21,9 +21,9 @@
 
 1.2 Installing OpenTTD.
 
-On Windows, insert your "Transport Tycoon Deluxe for Windows 95" disk. You can use a DOS version, but your graphics will be purple. NB: Even if your version of Transport Tycoon Deluxe ran on Windows 95, it may still be the DOS version. Then run the OpenTTD installer. 
+On Windows, insert your "Transport Tycoon Deluxe for Windows 95" disk. You can use a DOS version, but your graphics will be purple. NB: Even if your version of Transport Tycoon Deluxe ran on Windows 95, it may still be the DOS version. Then run the OpenTTD installer.
 
-On UNIX platforms; decompress your OpenTTD archive, or otherwise run the installer. You should be left with an OpenTTD directory on your system. In this directory, make a subdirectory called 'data', and into this place the sample.cat file and all the .grf files from the install CD of 'Transport Tycoon Deluxe for Windows 95". 
+On UNIX platforms; decompress your OpenTTD archive, or otherwise run the installer. You should be left with an OpenTTD directory on your system. In this directory, make a subdirectory called 'data', and into this place the sample.cat file and all the .grf files from the install CD of 'Transport Tycoon Deluxe for Windows 95".
 (Alternatively you can use the TTD GRF files from the DOS version: TRG1.GRF, TRGC.GRF, TRGH.GRF, TRGI.GRF, TRGT.GRF. A few minor graphical glitches with the DOS graphics remain. E.g. the autorail button in the rail toolbar doesn't look as nice as with the Windows graphics.)
 
 If you want MIDI music, copy the 'gm' folder from the original game directory/CD to the OpenTTD folder.
@@ -38,7 +38,7 @@
 
 1.4 Configuring OpenTTD
 
-OpenTTD's launch menu contains three configuration menus - Difficulty Settings, Configure Patches and Game Settings. Most of these menus can be configured from within a running game as well. 
+OpenTTD's launch menu contains three configuration menus - Difficulty Settings, Configure Patches and Game Settings. Most of these menus can be configured from within a running game as well.
 
 Difficulty Settings lets you configure settings that affect the difficulty of playing the game. These include when your (computer-controlled) competitors can start building, how many of them there are, and how intelligent they are. You can also control how much the subsidy mutliplier is for subsidised routes, and how stable/volitile the in-game economy is. You can also set how you want the terrain to be configured in a random game.
 
@@ -52,14 +52,14 @@
 
 2.2 Station Construction
 
-In OpenTTD, you can build rail stations up to seven squares long and with up to seven platforms. You can also have stations spreading across far larger distances, allowing a large rail station to be connected to a large airport, for instance. 
+In OpenTTD, you can build rail stations up to seven squares long and with up to seven platforms. You can also have stations spreading across far larger distances, allowing a large rail station to be connected to a large airport, for instance.
 
 However, there is an even more noticable difference in rail station construction. You may now add platforms and lenght to a station after it has been built, and you may also add platforms of a different type. Users of TTDPatch will be used to this behaviour. But beyond what TTDPatch has, you can make stations of uneven lenght/width, and even ones with perpendicular tracks. You can also delete single tiles or tracks from a station, by holding down Shift before pressing the station construction button.
 
 2.3 Checkpoint Stations
 
 
-Checkpoint stations (the small blue item in the rail construction window) are small 1x1 stations. They must be built on top of pre-existing track. They do not accept or produce carge of any kind. They exist solely for use as route points. They become useful when dealing with large networks  where trains may attempt to route themselves along undesirable or impossible routes. As an alternative to checkpoint stations, you can also direct trains to visit depots along the way. This has the advantage of also servicing the train and hence the train will rarely to never need to depart from its route to be serviced. 
+Checkpoint stations (the small blue item in the rail construction window) are small 1x1 stations. They must be built on top of pre-existing track. They do not accept or produce carge of any kind. They exist solely for use as route points. They become useful when dealing with large networks  where trains may attempt to route themselves along undesirable or impossible routes. As an alternative to checkpoint stations, you can also direct trains to visit depots along the way. This has the advantage of also servicing the train and hence the train will rarely to never need to depart from its route to be serviced.
 
 2.4 Freeform Rail Laying.
 
@@ -75,7 +75,7 @@
 
 2.7 Long Bridges
 
-OpenTTD allows you to constuct bridges up to 127 squares - half the size of the current map. This means that the crossing of large estuaries, such at the Bristol Channel in the original "West Country 90210" scenario can be acheived with one bridge instead of many bridges with staging points. 
+OpenTTD allows you to constuct bridges up to 127 squares - half the size of the current map. This means that the crossing of large estuaries, such at the Bristol Channel in the original "West Country 90210" scenario can be acheived with one bridge instead of many bridges with staging points.
 
 2.8 Long trains
 
@@ -89,7 +89,7 @@
 
 Virtually any settings - train numbers, start date, what vehicles your competitors can use, etc - can be set in OpenTTD. Just use the Configure Patches menu on the main screen.
 
-2.11 Network Play 
+2.11 Network Play
 
 See multiplayer.txt for more info.
 
@@ -99,4 +99,4 @@
 
 2.13 Canal Building
 
-This button, at the end of the water construction window, lets you build canals and shiplifts across the landscape. These act just like normal water.
\ No newline at end of file
+This button, at the end of the water construction window, lets you build canals and shiplifts across the landscape. These act just like normal water.
--- a/docs/OSX_install_instructions.txt	Mon Jun 05 18:00:37 2006 +0000
+++ b/docs/OSX_install_instructions.txt	Mon Jun 05 18:10:43 2006 +0000
@@ -20,4 +20,4 @@
 GM   (optional for music)
 scenario (optional pregenerated maps)
 
-The game adds some items by itself when it runs, like a save folder and a setting file
\ No newline at end of file
+The game adds some items by itself when it runs, like a save folder and a setting file
--- a/docs/Readme_Mandrake_Linux.txt	Mon Jun 05 18:00:37 2006 +0000
+++ b/docs/Readme_Mandrake_Linux.txt	Mon Jun 05 18:10:43 2006 +0000
@@ -41,7 +41,7 @@
 
 (Alternatively you can use the TTD GRF files from the DOS version: TRG1.GRF, TRGC.GRF, TRGH.GRF, TRGI.GRF, TRGT.GRF. A few minor graphical glitches with the DOS graphics remain. E.g. the autorail button in the rail toolbar doesn't look as nice as with the Windows graphics.)
 
-  
+
 4.) Compiling and running:
 
 Compile OpenTTD with
@@ -49,7 +49,7 @@
 and run it with
   $ ./ttd
 
-     
+
 5.) Playing the soundtrack:
 
 If you want the original TTD music you need to copy the whole /gm/ directory from Windows. Additionally the TiMidity driver is required:
@@ -57,6 +57,6 @@
 To run OpenTTD with music support type
   $ ./ttd -m extmidi
 
-  
+
 X.) Last Update: $Date: 2004-06-01 19:08:09 +0200 (Tue, 01 Jun 2004) $
-    Written for revision $Rev: 710 $
\ No newline at end of file
+    Written for revision $Rev: 710 $
--- a/docs/directmusic.txt	Mon Jun 05 18:00:37 2006 +0000
+++ b/docs/directmusic.txt	Mon Jun 05 18:10:43 2006 +0000
@@ -17,4 +17,4 @@
 - The volume control doesn't work properly. I'll fix this soon.
 
 Owen Rudge
-14th March 2004
\ No newline at end of file
+14th March 2004
--- a/elrail.c	Mon Jun 05 18:00:37 2006 +0000
+++ b/elrail.c	Mon Jun 05 18:10:43 2006 +0000
@@ -369,4 +369,3 @@
 			break;
 	}
 }
-
--- a/known-bugs.txt	Mon Jun 05 18:00:37 2006 +0000
+++ b/known-bugs.txt	Mon Jun 05 18:10:43 2006 +0000
@@ -116,4 +116,4 @@
 -0987883	Aircraft landing/taking off
 -0987880	company league table updating
 -0985924	aircraft taxi speed
--0941694	Clipping problems stations/vehicles on slopes
\ No newline at end of file
+-0941694	Clipping problems stations/vehicles on slopes
--- a/newgrf_spritegroup.c	Mon Jun 05 18:00:37 2006 +0000
+++ b/newgrf_spritegroup.c	Mon Jun 05 18:10:43 2006 +0000
@@ -234,4 +234,3 @@
 		default:                return group;
 	}
 }
-
--- a/os/win32/installer/TTD to OpenTTD Transition Guide.txt	Mon Jun 05 18:00:37 2006 +0000
+++ b/os/win32/installer/TTD to OpenTTD Transition Guide.txt	Mon Jun 05 18:10:43 2006 +0000
@@ -11,4 +11,4 @@
 Guide Version: 0.1.1
 Supports OpenTTD Version: 0.2.1
 
-Send your ideas for this document to my email address.  I also maintain an accunt with tt-forums.net.  It's RaggieSoft.
\ No newline at end of file
+Send your ideas for this document to my email address.  I also maintain an accunt with tt-forums.net.  It's RaggieSoft.
--- a/scripts/readme.txt	Mon Jun 05 18:00:37 2006 +0000
+++ b/scripts/readme.txt	Mon Jun 05 18:10:43 2006 +0000
@@ -19,4 +19,3 @@
  - 'on_dedicated.scr' is additionally executed after starting a server [dedicated only]
 
 For examples how a script can look, check the .example examples.
-
--- a/settings.c	Mon Jun 05 18:00:37 2006 +0000
+++ b/settings.c	Mon Jun 05 18:10:43 2006 +0000
@@ -1755,4 +1755,3 @@
 	}
 	return false;
 }
-
--- a/table/elrail_data.h	Mon Jun 05 18:00:37 2006 +0000
+++ b/table/elrail_data.h	Mon Jun 05 18:10:43 2006 +0000
@@ -447,4 +447,3 @@
 };
 
 #endif /* ELRAIL_DATA_H */
-
--- a/unmovable_map.h	Mon Jun 05 18:00:37 2006 +0000
+++ b/unmovable_map.h	Mon Jun 05 18:10:43 2006 +0000
@@ -114,4 +114,3 @@
 	MakeUnmovable(t + TileDiffXY(1, 0), UNMOVABLE_HQ_EAST, o);
 	MakeUnmovable(t + TileDiffXY(1, 1), UNMOVABLE_HQ_SOUTH, o);
 }
-
--- a/yapf.txt	Mon Jun 05 18:00:37 2006 +0000
+++ b/yapf.txt	Mon Jun 05 18:10:43 2006 +0000
@@ -1,39 +1,36 @@
-Ships:
-======
-Set the YAPF (Yet Another Path Finder) type in the "Configure Pathes/Vehicles/YAPF for ships":
- - 0 - No YAPF (NPF or old PF)
- - 1 - YAPF type 1 (Node = Tile/Trackdir, 90 deg. turns allowed)
- - 2 - YAPF type 2 (Node = Tile/ExitDir , 90 deg. turns allowed)
- - 3 - YAPF type 3 (Node = Tile/Trackdir, no 90 deg.)
- - 4 - YAPF type 4 (Node = Tile/ExitDir , no 90 deg.)
-
-
-Set the "npf_max_search_nodes" value in your openttd.cfg to tune the pathfinder behavior.
-This value tells, how many nodes (Tile/Trackdir or Tile/ExitDir) combinations the pathfinder
-should visit before it ends. The lower number would mean quicker, but less accurate results.
-The "npf_max_search_nodes" value is shared between NPF and YAPF and has the same meaning.
-
-The pathfinder without such limit would be unusable on large maps, where number of visited
-nodes can exceed 10 milions. NPF on my machine (dual code AMD 4400+) with 1 milion of nodes
-visited took 2 minutes to finish, but with this limit set to 10000 it takes 20 miliseconds.
-The new YAPF had similar results (18 seconds vs. 4 miliseconds).
-
-
-Road Vehicles:
-==============
-Set the YAPF (Yet Another Path Finder) type in the "Configure Pathes/Vehicles/YAPF for road vehs":
- - 0 - No YAPF (NPF or old PF)
- - 1 - YAPF type 1 (Node = Tile/Trackdir, 90 deg. turns allowed)
- - 2 - YAPF type 2 (Node = Tile/ExitDir , 90 deg. turns allowed)
-
-Trains:
-=======
-Same types as for ships:
- - 0 - No YAPF (NPF or old PF)
- - 1 - YAPF type 1 (Node = Tile/Trackdir, 90 deg. turns allowed)
- - 2 - YAPF type 2 (Node = Tile/ExitDir , 90 deg. turns allowed)
- - 3 - YAPF type 3 (Node = Tile/Trackdir, no 90 deg.)
- - 4 - YAPF type 4 (Node = Tile/ExitDir , no 90 deg.)
-
-
-
+Ships:
+======
+Set the YAPF (Yet Another Path Finder) type in the "Configure Pathes/Vehicles/YAPF for ships":
+ - 0 - No YAPF (NPF or old PF)
+ - 1 - YAPF type 1 (Node = Tile/Trackdir, 90 deg. turns allowed)
+ - 2 - YAPF type 2 (Node = Tile/ExitDir , 90 deg. turns allowed)
+ - 3 - YAPF type 3 (Node = Tile/Trackdir, no 90 deg.)
+ - 4 - YAPF type 4 (Node = Tile/ExitDir , no 90 deg.)
+
+
+Set the "npf_max_search_nodes" value in your openttd.cfg to tune the pathfinder behavior.
+This value tells, how many nodes (Tile/Trackdir or Tile/ExitDir) combinations the pathfinder
+should visit before it ends. The lower number would mean quicker, but less accurate results.
+The "npf_max_search_nodes" value is shared between NPF and YAPF and has the same meaning.
+
+The pathfinder without such limit would be unusable on large maps, where number of visited
+nodes can exceed 10 milions. NPF on my machine (dual code AMD 4400+) with 1 milion of nodes
+visited took 2 minutes to finish, but with this limit set to 10000 it takes 20 miliseconds.
+The new YAPF had similar results (18 seconds vs. 4 miliseconds).
+
+
+Road Vehicles:
+==============
+Set the YAPF (Yet Another Path Finder) type in the "Configure Pathes/Vehicles/YAPF for road vehs":
+ - 0 - No YAPF (NPF or old PF)
+ - 1 - YAPF type 1 (Node = Tile/Trackdir, 90 deg. turns allowed)
+ - 2 - YAPF type 2 (Node = Tile/ExitDir , 90 deg. turns allowed)
+
+Trains:
+=======
+Same types as for ships:
+ - 0 - No YAPF (NPF or old PF)
+ - 1 - YAPF type 1 (Node = Tile/Trackdir, 90 deg. turns allowed)
+ - 2 - YAPF type 2 (Node = Tile/ExitDir , 90 deg. turns allowed)
+ - 3 - YAPF type 3 (Node = Tile/Trackdir, no 90 deg.)
+ - 4 - YAPF type 4 (Node = Tile/ExitDir , no 90 deg.)
--- a/yapf/follow_track.cpp	Mon Jun 05 18:00:37 2006 +0000
+++ b/yapf/follow_track.cpp	Mon Jun 05 18:10:43 2006 +0000
@@ -39,4 +39,3 @@
 	CFollowTrackRailNo90& F = *(CFollowTrackRailNo90*) This;
 	return F.Follow(old_tile, old_td);
 }
-
--- a/yapf/unittest/test_autocopyptr.h	Mon Jun 05 18:00:37 2006 +0000
+++ b/yapf/unittest/test_autocopyptr.h	Mon Jun 05 18:10:43 2006 +0000
@@ -40,4 +40,3 @@
 	CHECK_INT(5, CData::NumInstances(), 0);
 	return res;
 }
-
--- a/yapf/unittest/test_binaryheap.h	Mon Jun 05 18:00:37 2006 +0000
+++ b/yapf/unittest/test_binaryheap.h	Mon Jun 05 18:10:43 2006 +0000
@@ -100,4 +100,3 @@
 	CHECK_INT(7, CData::NumInstances(), 0);
 	return res;
 }
-
--- a/yapf/unittest/test_fixedsizearray.h	Mon Jun 05 18:00:37 2006 +0000
+++ b/yapf/unittest/test_fixedsizearray.h	Mon Jun 05 18:10:43 2006 +0000
@@ -111,4 +111,3 @@
 
 	return res;
 }
-
--- a/yapf/unittest/test_hashtable.h	Mon Jun 05 18:00:37 2006 +0000
+++ b/yapf/unittest/test_hashtable.h	Mon Jun 05 18:10:43 2006 +0000
@@ -70,5 +70,3 @@
 	}
 	return res;
 }
-
-
--- a/yapf/unittest/test_yapf.h	Mon Jun 05 18:00:37 2006 +0000
+++ b/yapf/unittest/test_yapf.h	Mon Jun 05 18:10:43 2006 +0000
@@ -357,5 +357,3 @@
 	: public CYapfT<CYapf_TypesT<CTestYapf2, CNodeList2, CYapfMap1> >
 {
 };
-
-
--- a/yapf/unittest/unittest.cpp	Mon Jun 05 18:00:37 2006 +0000
+++ b/yapf/unittest/unittest.cpp	Mon Jun 05 18:10:43 2006 +0000
@@ -157,10 +157,3 @@
 	TRACKDIR_BIT_UPPER_W  | TRACKDIR_BIT_UPPER_E  | TRACKDIR_BIT_LOWER_W | TRACKDIR_BIT_LOWER_E, /* TRACK_LEFT  */
 	TRACKDIR_BIT_UPPER_W  | TRACKDIR_BIT_UPPER_E  | TRACKDIR_BIT_LOWER_W | TRACKDIR_BIT_LOWER_E  /* TRACK_RIGHT */
 };
-
-
-
-
-
-
-
--- a/yapf/unittest/unittest.h	Mon Jun 05 18:00:37 2006 +0000
+++ b/yapf/unittest/unittest.h	Mon Jun 05 18:10:43 2006 +0000
@@ -27,8 +27,3 @@
 #  include <windows.h>
 #else
 #endif
-
-
-
-
-
--- a/yapf/yapf_common.cpp	Mon Jun 05 18:00:37 2006 +0000
+++ b/yapf/yapf_common.cpp	Mon Jun 05 18:10:43 2006 +0000
@@ -27,4 +27,3 @@
 	TRACKDIR_BIT_NONE                    , //14
 	TRACKDIR_BIT_NONE                    , //15
 };
-
--- a/yapf/yapf_ship.cpp	Mon Jun 05 18:00:37 2006 +0000
+++ b/yapf/yapf_ship.cpp	Mon Jun 05 18:10:43 2006 +0000
@@ -174,4 +174,3 @@
 	delete &perf;
 	return t;
 }
-