(svn r19643) -Fix (r19120): Industry generation failed for large maps and lots of industry types.

This commit is contained in:
frosch
2010-04-16 21:21:54 +00:00
parent 1a3a09d108
commit 80db03aef7
3 changed files with 5 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ uint32 DoRandom(int line, const char *file)
uint DoRandomRange(uint max, int line, const char *file)
{
assert(max <= UINT16_MAX);
return GB(DoRandom(line, file), 0, 16) * max >> 16;
}
#endif /* RANDOM_DEBUG */