--- a/src/viewport.cpp Sun Apr 15 17:04:44 2007 +0000
+++ b/src/viewport.cpp Sat Apr 21 08:23:57 2007 +0000
@@ -2025,8 +2025,9 @@
* north-south (DIR_S) to obtain the same results with less code. This is what
* the return value signifies.
* @param style HighLightStyle dragging style
- * @param start_tile, end_tile start and end tile of drag
- * @param boolean value which when true means start/end should be swapped */
+ * @param start_tile start tile of drag
+ * @param end_tile end tile of drag
+ * @return boolean value which when true means start/end should be swapped */
static bool SwapDirection(HighLightStyle style, TileIndex start_tile, TileIndex end_tile)
{
uint start_x = TileX(start_tile);
@@ -2051,7 +2052,7 @@
* To correctly get the height difference we need the direction we are dragging
* in, as well as with what kind of tool we are dragging. For example a horizontal
* autorail tool that starts in bottom and ends at the top of a tile will need the
-* maximum of SW,S and SE,N corners respectively. This is handled by the lookup table below
+* maximum of SW, S and SE, N corners respectively. This is handled by the lookup table below
* See _tileoffs_by_dir in map.c for the direction enums if you can't figure out
* the values yourself.
* @param style HightlightStyle of drag. This includes direction and style (autorail, rect, etc.)
@@ -2396,7 +2397,7 @@
e.we.place.userdata = _thd.userdata;
/* stop drag mode if the window has been closed */
- w = BaseWindow::FindById(_thd.window_class,_thd.window_number);
+ w = BaseWindow::FindById(_thd.window_class, _thd.window_number);
if (w == NULL) {
ResetObjectToPlace();
return false;