summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorJMcKiern <jmckiern@tcd.ie>2019-09-29 21:27:32 +0100
committerCharles Pigott <charlespigott@googlemail.com>2019-09-29 21:27:32 +0100
commit04f659e768486da4fc73a97a633f140d9733bf78 (patch)
tree7d1ecef7d6a39891d2485ae8a0ef8f12673d2b93 /src/script
parent316e4e94171d8d269b80dd9e329fc1fe610fbfe2 (diff)
downloadopenttd-04f659e768486da4fc73a97a633f140d9733bf78.tar.xz
Fix: Some typos found using codespell
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/ai_changelog.hpp2
-rw-r--r--src/script/api/script_cargo.hpp2
-rw-r--r--src/script/api/script_event_types.hpp4
-rw-r--r--src/script/api/script_goal.cpp2
-rw-r--r--src/script/api/script_road.hpp6
-rw-r--r--src/script/api/script_story_page.hpp4
6 files changed, 10 insertions, 10 deletions
diff --git a/src/script/api/ai_changelog.hpp b/src/script/api/ai_changelog.hpp
index 7258cf74e..06ea54803 100644
--- a/src/script/api/ai_changelog.hpp
+++ b/src/script/api/ai_changelog.hpp
@@ -313,7 +313,7 @@
* destination it its catchment area. One industry tile or one town house
* is enough as long as station accepts the cargo. Awarded subsidies are no
* longer bound to stations used for first delivery, any station can be
- * used for loading and unloading as long as cargo is transfered from
+ * used for loading and unloading as long as cargo is transferred from
* source to destination.
* \li Make AIEngine:CanRefitCargo() not report refittability to mail by
* default for aircraft. It is not necessarily true. This means that even
diff --git a/src/script/api/script_cargo.hpp b/src/script/api/script_cargo.hpp
index d1bfdd1fc..e977031a1 100644
--- a/src/script/api/script_cargo.hpp
+++ b/src/script/api/script_cargo.hpp
@@ -36,7 +36,7 @@ public:
CC_LIQUID = ::CC_LIQUID, ///< Liquids (Oil, Water, Rubber)
CC_REFRIGERATED = ::CC_REFRIGERATED, ///< Refrigerated cargo (Food, Fruit)
CC_HAZARDOUS = ::CC_HAZARDOUS, ///< Hazardous cargo (Nuclear Fuel, Explosives, etc.)
- CC_COVERED = ::CC_COVERED, ///< Covered/Sheltered Freight (Transporation in Box Vans, Silo Wagons, etc.)
+ CC_COVERED = ::CC_COVERED, ///< Covered/Sheltered Freight (Transportation in Box Vans, Silo Wagons, etc.)
};
/**
diff --git a/src/script/api/script_event_types.hpp b/src/script/api/script_event_types.hpp
index f13e588ee..f9b2fb87f 100644
--- a/src/script/api/script_event_types.hpp
+++ b/src/script/api/script_event_types.hpp
@@ -799,8 +799,8 @@ private:
/**
* Event AircraftDestTooFar, indicating the next destination of an aircraft is too far away.
- * This event can be trigger when the current oder of an aircraft changes, usually either when
- * loading is done or when switch manually.
+ * This event can be triggered when the current order of an aircraft changes, usually either when
+ * loading is done or when switched manually.
* @api ai
*/
class ScriptEventAircraftDestTooFar : public ScriptEvent {
diff --git a/src/script/api/script_goal.cpp b/src/script/api/script_goal.cpp
index 461911d3c..4c0f5eb35 100644
--- a/src/script/api/script_goal.cpp
+++ b/src/script/api/script_goal.cpp
@@ -84,7 +84,7 @@
EnforcePrecondition(false, IsValidGoal(goal_id));
EnforcePrecondition(false, ScriptObject::GetCompany() == OWNER_DEITY);
- /* Ensure null as used for emtpy string. */
+ /* Ensure null as used for empty string. */
if (progress != nullptr && StrEmpty(progress->GetEncodedText())) {
progress = nullptr;
}
diff --git a/src/script/api/script_road.hpp b/src/script/api/script_road.hpp
index 39cf0420b..bc230bda3 100644
--- a/src/script/api/script_road.hpp
+++ b/src/script/api/script_road.hpp
@@ -219,7 +219,7 @@ public:
static bool AreRoadTilesConnected(TileIndex tile_from, TileIndex tile_to);
/**
- * Lookup function for building road parts independend on whether the
+ * Lookup function for building road parts independent of whether the
* "building on slopes" setting is enabled or not.
* This implementation can be used for abstract reasoning about a tile as
* it needs the slope and existing road parts of the tile as information.
@@ -250,10 +250,10 @@ public:
static int32 CanBuildConnectedRoadParts(ScriptTile::Slope slope, struct Array *existing, TileIndex start, TileIndex end);
/**
- * Lookup function for building road parts independend on whether the
+ * Lookup function for building road parts independent of whether the
* "building on slopes" setting is enabled or not.
* This implementation can be used for reasoning about an existing tile.
- * @param tile The the tile to examine.
+ * @param tile The tile to examine.
* @param start The tile from where "tile" will be entered.
* @param end The tile from where "tile" will be exited.
* @pre start != end.
diff --git a/src/script/api/script_story_page.hpp b/src/script/api/script_story_page.hpp
index 772c16200..e806bb766 100644
--- a/src/script/api/script_story_page.hpp
+++ b/src/script/api/script_story_page.hpp
@@ -92,7 +92,7 @@ public:
* Create a new story page element.
* @param story_page_id The page id of the story page which the page element should be appended to.
* @param type Which page element type to create.
- * @param reference A reference value to the object that is refered to by some page element types. When type is SPET_GOAL, this is the goal ID. When type is SPET_LOCATION, this is the TileIndex.
+ * @param reference A reference value to the object that is referred to by some page element types. When type is SPET_GOAL, this is the goal ID. When type is SPET_LOCATION, this is the TileIndex.
* @param text The body text of page elements that allow custom text. (SPET_TEXT and SPET_LOCATION)
* @return The new StoryPageElementID, or STORY_PAGE_ELEMENT_INVALID if it failed.
* @pre No ScriptCompanyMode may be in scope.
@@ -107,7 +107,7 @@ public:
/**
* Update the content of a page element
* @param story_page_element_id The page id of the story page which the page element should be appended to.
- * @param reference A reference value to the object that is refered to by some page element types. See also NewElement.
+ * @param reference A reference value to the object that is referred to by some page element types. See also NewElement.
* @param text The body text of page elements that allow custom text. See also NewElement.
* @return True if the action succeeded.
* @pre No ScriptCompanyMode may be in scope.