comparison Player.cpp @ 1295:86a83e12d795

moving files
author Ritor1
date Mon, 17 Jun 2013 17:34:01 +0600
parents ce8ea73e7678
children 5450af4f57ef
comparison
equal deleted inserted replaced
1294:6bbd50bda571 1295:86a83e12d795
9520 *v11 = v7 + 1; 9520 *v11 = v7 + 1;
9521 pMouse->RemoveHoldingItem(); 9521 pMouse->RemoveHoldingItem();
9522 } 9522 }
9523 } 9523 }
9524 } 9524 }
9525 //----- (0049387A) --------------------------------------------------------
9526 int CycleCharacter(unsigned int _this)
9527 {
9528 signed int result; // eax@1
9529 signed int v2; // ecx@2
9530 signed int v3; // ecx@8
9531
9532 result = uActiveCharacter;
9533 if ( _this )
9534 {
9535 v2 = 0;
9536 while ( 1 )
9537 {
9538 --result;
9539 if ( result < 1 )
9540 result = 4;
9541 if ( !pPlayers[result]->uTimeToRecovery )
9542 break;
9543 ++v2;
9544 if ( v2 >= 4 )
9545 return uActiveCharacter;
9546 }
9547 }
9548 else
9549 {
9550 v3 = 0;
9551 while ( 1 )
9552 {
9553 ++result;
9554 if ( result > 4 )
9555 result = 1;
9556 if ( !pPlayers[result]->uTimeToRecovery )
9557 break;
9558 ++v3;
9559 if ( v3 >= 4 )
9560 return uActiveCharacter;
9561 }
9562 }
9563 return result;
9564 }