moved explode() to the Environment class
This commit is contained in:
devZoGok
2025-06-06 16:33:55 +03:00
parent 69720adf30
commit 8a2d67ec2a
11 changed files with 180 additions and 78 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ namespace battleship{
//TODO replace unit pos with absolute weapon pos for withinAngle
void Weapon::update(){
if(!unit->isEnabled()) return;
if(unit->getCondition() != Unit::Condition::ABLE) return;
int numOrders = unit->getNumOrders();
int ordTp = (numOrders > 0 ? (int)unit->getOrder(0).type : -1);