mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
rendering allied units
This commit is contained in:
+1
-1
@@ -491,7 +491,7 @@ namespace battleship{
|
||||
for (Unit *u : units) {
|
||||
Node *model = u->getModel();
|
||||
|
||||
if (u->getPlayer() == mainPlayer){
|
||||
if (u->getPlayer()->getTeam() == mainPlayer->getTeam()){
|
||||
if(!u->getLosLightNode()) u->initLosLight();
|
||||
|
||||
model->setVisible(true);
|
||||
|
||||
Reference in New Issue
Block a user