mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
EMP boat
moved explode() to the Environment class
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user