|
|
@ -143,6 +143,7 @@ void Scenario::RunAI(Resources&enemy_resources,std::vector<std::shared_ptr<Colle |
|
|
|
if(enemy_resources.range>0){enemy_resources.range=std::max(0,enemy_resources.range-totalCost);}else |
|
|
|
if(enemy_resources.range>0){enemy_resources.range=std::max(0,enemy_resources.range-totalCost);}else |
|
|
|
{enemy_resources.procedure=std::max(0,enemy_resources.procedure-totalCost); |
|
|
|
{enemy_resources.procedure=std::max(0,enemy_resources.procedure-totalCost); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
availableMemory-=totalCost; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(!u->IsFriendly()&&u->IsPlatform()){ |
|
|
|
if(!u->IsFriendly()&&u->IsPlatform()){ |
|
|
@ -174,6 +175,7 @@ void Scenario::RunAI(Resources&enemy_resources,std::vector<std::shared_ptr<Colle |
|
|
|
if(enemy_resources.range>0){enemy_resources.range=std::max(0,enemy_resources.range-totalCost);}else |
|
|
|
if(enemy_resources.range>0){enemy_resources.range=std::max(0,enemy_resources.range-totalCost);}else |
|
|
|
{enemy_resources.procedure=std::max(0,enemy_resources.procedure-totalCost); |
|
|
|
{enemy_resources.procedure=std::max(0,enemy_resources.procedure-totalCost); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
availableMemory-=totalCost; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
switch(flags.difficulty){ |
|
|
|
switch(flags.difficulty){ |
|
|
@ -650,6 +652,7 @@ void Stage4::Update(){ |
|
|
|
state=6; |
|
|
|
state=6; |
|
|
|
box.SetVisible(false); |
|
|
|
box.SetVisible(false); |
|
|
|
flags.playerInControl=true; |
|
|
|
flags.playerInControl=true; |
|
|
|
|
|
|
|
flags.flashMemoryBar=false; |
|
|
|
} |
|
|
|
} |
|
|
|
}break; |
|
|
|
}break; |
|
|
|
case 6:{ |
|
|
|
case 6:{ |
|
|
|