mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
Units move using the new pathfinding system
Minor refactoring
This commit is contained in:
+1
-1
@@ -300,7 +300,7 @@ namespace battleship{
|
||||
case Bind::TOGGLE_SUB:
|
||||
if (isPressed) {
|
||||
for (Unit *u : selectedUnits) {
|
||||
if (u->getPlayer() == mainPlayer && u->getType() == UnitType::SUBMARINE) {
|
||||
if (u->getPlayer() == mainPlayer && u->getUnitClass() == UnitClass::SUBMARINE) {
|
||||
Submarine *s = (Submarine*) u;
|
||||
|
||||
if (s->isSubmerged())
|
||||
|
||||
Reference in New Issue
Block a user