Remove the "you are asking too much" power assert, as it is sometimes legitimate to ask for a lot of power (after lagging for a few seconds in multiplayer for example). Fixes bug 605 and fixes bug 401.
parent
b6b9a8c534
commit
02808349a3
|
@ -408,7 +408,6 @@ float requestPower(int player, float amount)
|
|||
|
||||
// keep track on how much energy we could possibly spend
|
||||
asPower[player].powerRequested += amount;
|
||||
ASSERT(asPower[player].powerRequested < 1000, "you are asking too much");
|
||||
|
||||
if (amountConsidered <= asPower[player].currentPower)
|
||||
{
|
||||
|
@ -445,7 +444,6 @@ int requestPowerFor(int player, float amount, int points)
|
|||
|
||||
// keep track on how much energy we could possibly spend
|
||||
asPower[player].powerRequested += amount;
|
||||
ASSERT(asPower[player].powerRequested < 1000, "you are asking too much");
|
||||
|
||||
if (amountConsidered <= asPower[player].currentPower)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue