summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-11 16:38:36 +0100
committerErich Eckner <git@eckner.net>2022-01-16 21:58:17 +0100
commitae85fb7f511b71d7443161bfd3560d7d2ef67c11 (patch)
treef2aa1d8b9de64491630a0d7f3902d48e9f2b0218
parent5d00438a858bb4a404d2b5d5c6f9d9fa9e58663f (diff)
downloadopenttd-ae85fb7f511b71d7443161bfd3560d7d2ef67c11.tar.xz
fix whitespace errors
-rw-r--r--src/base_station_base.h4
-rw-r--r--src/clear_cmd.cpp4
-rw-r--r--src/layer.cpp10
-rw-r--r--src/layer_func.h4
-rw-r--r--src/station_cmd.cpp2
-rw-r--r--src/tilearea_type.h8
-rw-r--r--src/underground_gui.cpp6
7 files changed, 19 insertions, 19 deletions
diff --git a/src/base_station_base.h b/src/base_station_base.h
index 9a5157ca4..ace01445a 100644
--- a/src/base_station_base.h
+++ b/src/base_station_base.h
@@ -30,8 +30,8 @@ struct StationSpecList {
** Патч "layer"
** Критическое изменение:
** "Rect" подразумевает только верхний слой (поверхность)
-** (станция может располагаться на любом слое, --
-** Rect описывает соответствующую часть верхнего слоя)
+** (станция может располагаться на любом слое, --
+** Rect описывает соответствующую часть верхнего слоя)
*/
struct StationRect : public Rect {
enum StationRectMode
diff --git a/src/clear_cmd.cpp b/src/clear_cmd.cpp
index 5fc5829f9..98a53b7ba 100644
--- a/src/clear_cmd.cpp
+++ b/src/clear_cmd.cpp
@@ -102,14 +102,14 @@ static void DrawClearLandFence(const TileInfo *ti)
static void DrawUndergroundTile_Clear(TileInfo *ti)
{
-
+
}
static void DrawTile_Clear(TileInfo *ti)
{
uint base_tile = TopTile(ti->tile);
uint underground_tile = DownTile(base_tile);
-
+
bool self_underground = IsUnderground(ti->tile);
bool have_canalization = IsTileType(base_tile, MP_HOUSE);
diff --git a/src/layer.cpp b/src/layer.cpp
index 4fe511234..00182d70c 100644
--- a/src/layer.cpp
+++ b/src/layer.cpp
@@ -1,6 +1,6 @@
/* $Id: map.cpp 23740 2012-01-03 21:32:51Z $ */
/*
-
+
Это модуль, для возможности полноценной игры в трех измерениях
(подземелье, метро, итп.)
@@ -45,11 +45,11 @@
Обычная карта
MapSizeX х (MapSizeY)
-
+
Представление в виде слоев
LayerSizeX x (LayerSizeY x LayerCount)
-Иными словами игровые координаты "плоского" пространства
+Иными словами игровые координаты "плоского" пространства
MapX, MapY, MapZ
@@ -90,7 +90,7 @@ uint _layer_size_x; ///< Size of the map along the X
uint _layer_size_y; ///< Size of the map along the Y
uint _layer_count; ///< The number of tiles on the map
uint _layer_count_log;
-uint _layer_size; ///< Layer size (sizeX * sizeY)
+uint _layer_size; ///< Layer size (sizeX * sizeY)
void InstallLayerSystem(uint size_x, uint size_y, uint layer_count)
{
@@ -129,7 +129,7 @@ uint8 calculateLayer(const Viewport *vp)
// Функция ViewportDoDraw вызывается несколько раз с разными параметрами
// Нужно же найти только один слой.
// Опираемся на вьюпорт.
-
+
Point pt = InverseRemapCoords(vp->virtual_left+(vp->virtual_width >> 1),vp->virtual_top+(vp->virtual_height >> 1));
TileIndex center = TileVirtXY(pt.x, pt.y);
return LayerIndex(center);
diff --git a/src/layer_func.h b/src/layer_func.h
index d472d23b5..05022163a 100644
--- a/src/layer_func.h
+++ b/src/layer_func.h
@@ -20,7 +20,7 @@
*/
void InstallLayerSystem(uint size_x, uint size_y, uint layer_count);
-/* Корректировка "подземных" слоев
+/* Корректировка "подземных" слоев
* (в будущем слои могут менять высоты -- в пределах соседей) */
void FixUndergroundHeights();
@@ -59,7 +59,7 @@ static inline bool IsUnderground(TileIndex tile)
}
/**
-* Размер слоя.
+* Размер слоя.
* Можно прибавить к клетке, чтобы получить клетку ниже
*/
static inline uint LayerSize()
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 145d338ac..586302f4b 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2075,7 +2075,7 @@ CommandCost CmdRemoveRoadStop(DoCommandFlag flags, TileIndex tile, uint8 width,
/* Это территория удаления остановок (НЕ самих остановок) */
TileArea roadstop_area(TopTile(tile), width, height);
-
+
/* TileArea is top finite area */
assert(IsTopTile(roadstop_area.tile));
assert(roadstop_area.IsFinite());
diff --git a/src/tilearea_type.h b/src/tilearea_type.h
index 8a9292ad6..c6af2dc38 100644
--- a/src/tilearea_type.h
+++ b/src/tilearea_type.h
@@ -45,13 +45,13 @@ struct OrthogonalTileArea {
}
inline bool IsEmpty() const
- {
- return (w==0 && h==0);
+ {
+ return (w==0 && h==0);
}
inline bool IsFinite() const
- {
- return (w!=0 && h!=0);
+ {
+ return (w!=0 && h!=0);
}
bool Intersects(const OrthogonalTileArea &ta) const;
diff --git a/src/underground_gui.cpp b/src/underground_gui.cpp
index 05ac87bab..be4ebe4e5 100644
--- a/src/underground_gui.cpp
+++ b/src/underground_gui.cpp
@@ -64,7 +64,7 @@ static void PlaceUnderground_Escalator(TileIndex tile)
uint32 p1 = railtype | orientation << 4 | 1 << 8 | 1 << 16 | _ctrl_pressed << 24;
uint32 p2 = station_class | station_type << 8 | INVALID_STATION << 16;
-
+
int w = 1;
int h = 1;
@@ -87,7 +87,7 @@ static void PlaceUnderground_Escalator(TileIndex tile)
DoCommandFlag flags = DC_AUTO | DC_NO_WATER;
CommandCost resTop;
CommandCost res;
-
+
// Проверяем возможность постройки верха и низа:
resTop=DoCommand(&cmdTop, flags | DC_QUERY_COST);
if (resTop.Failed())
@@ -123,7 +123,7 @@ static void PlaceUnderground_Escalator(TileIndex tile)
// Уточняем параметры
StationID station = GetStationIndex(cmd1->tile);
cmd2->p2 = station_class | station_type << 8 | station << 16;
-
+
// Строим уровень (в другом слое)
res=DoCommand(cmd2, flags | DC_EXEC);
assert(!res.Failed());