(svn r13731) -Codechange: make a pool of the array of players.

This commit is contained in:
rubidium
2008-07-18 16:40:29 +00:00
parent 56ad26a3aa
commit cde65455ac
38 changed files with 173 additions and 242 deletions

View File

@@ -44,8 +44,8 @@ static int32 ClickMoneyCheat(int32 p1, int32 p2)
*/
static int32 ClickChangePlayerCheat(int32 p1, int32 p2)
{
while (IsValidPlayerID((PlayerID)p1)) {
if (_players[p1].is_active) {
while ((uint)p1 < GetPlayerPoolSize()) {
if (IsValidPlayerID((PlayerID)p1)) {
SetLocalPlayer((PlayerID)p1);
MarkWholeScreenDirty();