branch | noai |
changeset 9371 | cfa43f975d01 |
parent 9362 | 3aebc515446a |
--- a/src/ai/core/base/random.cpp Wed Mar 14 01:57:10 2007 +0000 +++ b/src/ai/core/base/random.cpp Wed Mar 14 01:58:36 2007 +0000 @@ -38,5 +38,5 @@ bool AIBase::Chance(uint out, uint max) { - return this->Random() <= (uint16)((65536 * out) / max); + return (uint16)this->Random() <= (uint16)((65536 * out) / max); }