diff options
author | alberth <alberth@openttd.org> | 2010-08-15 14:06:43 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-08-15 14:06:43 +0000 |
commit | 35fec79700a961ccd9f3d13bc068edccc63dc6a5 (patch) | |
tree | 89db9e984c5c6100fcaa55ee36f29fd6027132dc /src/ai | |
parent | 15514baf8b19c87c559361798c8d7705f2b3edf0 (diff) | |
download | openttd-35fec79700a961ccd9f3d13bc068edccc63dc6a5.tar.xz |
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_instance.hpp | 6 | ||||
-rw-r--r-- | src/ai/api/ai_base.hpp | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/ai/ai_instance.hpp b/src/ai/ai_instance.hpp index 9e8602392..9a427c8c6 100644 --- a/src/ai/ai_instance.hpp +++ b/src/ai/ai_instance.hpp @@ -30,7 +30,7 @@ public: {} /** - * Get the amount ot ticks the AI should be suspended. + * Get the amount of ticks the AI should be suspended. * @return The amount of AI ticks to suspend the AI. */ int GetSuspendTime() { return time; } @@ -172,7 +172,7 @@ private: void RegisterAPI(); /** - * Load squirrel scipts to emulate an older API. + * Load squirrel scripts to emulate an older API. */ bool LoadCompatibilityScripts(const char *api_version); @@ -182,7 +182,7 @@ private: void Died(); /** - * Save one object (int / string / arrray / table) to the savegame. + * Save one object (int / string / array / table) to the savegame. * @param vm The virtual machine to get all the data from. * @param index The index on the squirrel stack of the element to save. * @param max_depth The maximum depth recursive arrays / tables will be stored diff --git a/src/ai/api/ai_base.hpp b/src/ai/api/ai_base.hpp index d17bb05bd..40d7ed94b 100644 --- a/src/ai/api/ai_base.hpp +++ b/src/ai/api/ai_base.hpp @@ -36,7 +36,7 @@ public: /** * Get a random value. - * @param unused_param This param is not used, but is needed to work with lists. + * @param unused_param This parameter is not used, but is needed to work with lists. * @return A random value between 0 and MAX(uint32). */ static uint32 RandItem(int unused_param); @@ -50,14 +50,14 @@ public: /** * Get a random value in a range. - * @param unused_param This param is not used, but is needed to work with lists. + * @param unused_param This parameter is not used, but is needed to work with lists. * @param max The first number this function will never return (the maximum it returns is max - 1). * @return A random value between 0 .. max - 1. */ static uint RandRangeItem(int unused_param, uint max); /** - * Returns approximatelly 'out' times true when called 'max' times. + * Returns approximately 'out' times true when called 'max' times. * After all, it is a random function. * @param out How many times it should return true. * @param max Out of this many times. @@ -66,9 +66,9 @@ public: static bool Chance(uint out, uint max); /** - * Returns approximatelly 'out' times true when called 'max' times. + * Returns approximately 'out' times true when called 'max' times. * After all, it is a random function. - * @param unused_param This param is not used, but is needed to work with lists. + * @param unused_param This parameter is not used, but is needed to work with lists. * @param out How many times it should return true. * @param max Out of this many times. * @return True if the chance worked out. |