diff options
author | alberth <alberth@openttd.org> | 2012-09-18 19:29:29 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2012-09-18 19:29:29 +0000 |
commit | 461fc1e268cb5db0394221f1b61383b453e6fc0a (patch) | |
tree | 09e47a7d2107524293c09567eafdf5a88a26aa92 /src/script/api/script_base.hpp | |
parent | 72639deb84b7b4ca61a10f87ac2dc4841f4c8cdb (diff) | |
download | openttd-461fc1e268cb5db0394221f1b61383b453e6fc0a.tar.xz |
(svn r24531) -Fix: Max script chance was too big.
Diffstat (limited to 'src/script/api/script_base.hpp')
-rw-r--r-- | src/script/api/script_base.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/api/script_base.hpp b/src/script/api/script_base.hpp index 9384cbf80..a01325820 100644 --- a/src/script/api/script_base.hpp +++ b/src/script/api/script_base.hpp @@ -59,6 +59,7 @@ public: * After all, it is a random function. * @param out How many times it should return true. * @param max Out of this many times. + * @pre \a out is at most equal to \a max. * @return True if the chance worked out. */ static bool Chance(uint out, uint max); |