summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2012-12-01 13:12:39 +0000
committeralberth <alberth@openttd.org>2012-12-01 13:12:39 +0000
commit732e073261a0c9f2d644475ec800f5acae90ec94 (patch)
treeed921e856ce535c64e5542357fb942192a656df0 /src/script
parent01d023ad3bd9f33c702aa523e2b8efbdbe3f61f9 (diff)
downloadopenttd-732e073261a0c9f2d644475ec800f5acae90ec94.tar.xz
(svn r24776) -Doc: Typo fixes, additions, and additional dots collected from various sources (including Eagle_rainbow, MinchinWeb)
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_group.hpp4
-rw-r--r--src/script/api/script_info_docs.hpp8
-rw-r--r--src/script/script_info_dummy.cpp4
3 files changed, 8 insertions, 8 deletions
diff --git a/src/script/api/script_group.hpp b/src/script/api/script_group.hpp
index e1cd7cf4e..fd8888a17 100644
--- a/src/script/api/script_group.hpp
+++ b/src/script/api/script_group.hpp
@@ -113,7 +113,7 @@ public:
/**
* Move a vehicle to a group.
- * @param group_id The group to move the vehicel to.
+ * @param group_id The group to move the vehicle to.
* @param vehicle_id The vehicle to move to the group.
* @pre IsValidGroup(group_id) || group_id == GROUP_DEFAULT.
* @pre ScriptVehicle::IsValidVehicle(vehicle_id).
@@ -129,7 +129,7 @@ public:
* (auto)replaced with a longer variant (longer wagons or longer engines)
* If enabled, wagons are removed from the end of the vehicle until it
* fits in the same number of tiles as it did before.
- * @param keep_length If true, wagons will be removed if the a new engine is longer.
+ * @param keep_length If true, wagons will be removed if the new engine is longer.
* @return True if and only if the value was successfully changed.
*/
static bool EnableWagonRemoval(bool keep_length);
diff --git a/src/script/api/script_info_docs.hpp b/src/script/api/script_info_docs.hpp
index 14c442248..1ae38750c 100644
--- a/src/script/api/script_info_docs.hpp
+++ b/src/script/api/script_info_docs.hpp
@@ -133,7 +133,7 @@ public:
* Can a non-developer select Script for a new game.
*
* The idea behind this function is to 'forbid' using your script with a new
- * game if you for example specificly wrote it for a certain scenario.
+ * game if you for example specifically wrote it for a certain scenario.
*
* @return True if the Script can be selected from the GUI as non-developer.
* @note This function is optional. Default is false.
@@ -153,13 +153,13 @@ public:
/**
* Gets the API version this Script is written for. If this function
- * does not exist API compatability with version 0.7 is assumed.
+ * does not exist API compatibility with version 0.7 is assumed.
* If the function returns something OpenTTD does not understand,
* for example a newer version or a string that is not a version,
* the Script will not be loaded.
*
* Although in the future we might need to make a separate
- * compatability 'wrapper' for a specific version of OpenTTD, for
+ * compatibility 'wrapper' for a specific version of OpenTTD, for
* example '0.7.1', we will use only the major and minor number
* and not the bugfix number as valid return for this function.
*
@@ -246,7 +246,7 @@ public:
* @param setting_name The name of the setting.
* @param value_names A table that maps values to names. The first
* character of every identifier is ignored and the rest should
- * be the an integer of the value you define a name for. The value
+ * be an integer of the value you define a name for. The value
* is a short description of that value.
* To define labels for a setting named "competition_level" you could
* for example call it like this:
diff --git a/src/script/script_info_dummy.cpp b/src/script/script_info_dummy.cpp
index b2f699594..b84630332 100644
--- a/src/script/script_info_dummy.cpp
+++ b/src/script/script_info_dummy.cpp
@@ -17,9 +17,9 @@
/* The reason this exists in C++, is that a user can trash his ai/ or game/ dir,
* leaving no Scripts available. The complexity to solve this is insane, and
- * therefor the alternative is used, and make sure there is always a Script
+ * therefore the alternative is used, and make sure there is always a Script
* available, no matter what the situation is. By defining it in C++, there
- * is simply no way a user can delete it, and therefor safe to use. It has
+ * is simply no way a user can delete it, and therefore safe to use. It has
* to be noted that this Script is complete invisible for the user, and impossible
* to select manual. It is a fail-over in case no Scripts are available.
*/