(svn r2617) - Fix: fix some warnings, and reenable vs.net2003 signed/unsigned warnings

This commit is contained in:
Darkvater
2005-07-17 18:11:17 +00:00
parent f3c14486be
commit 5261529887
6 changed files with 15 additions and 13 deletions

View File

@@ -522,7 +522,7 @@ static void MaybeStartNewPlayer(void)
// when there's a lot of computers in game, the probability that a new one starts is lower
if (n < (uint)_opt.diff.max_no_competitors)
if (n < (!_network_server) ? RandomRange(_opt.diff.max_no_competitors + 2) : InteractiveRandomRange(_opt.diff.max_no_competitors + 2))
if (n < (!_network_server ? RandomRange(_opt.diff.max_no_competitors + 2) : InteractiveRandomRange(_opt.diff.max_no_competitors + 2)) )
DoStartupNewPlayer(true);
// The next AI starts like the difficulty setting said, with +2 month max