author | rubidium |
Wed, 14 Mar 2007 01:58:36 +0000 | |
branch | noai |
changeset 9371 | cfa43f975d01 |
parent 9370 | 839d87adee8e |
child 9372 | bd60b398f92b |
--- 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); }