Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 26, 2011, 4:10:30 PM (13 years ago)
Author:
mspaling
Message:

names added in hud

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/orxonox/infos/PlayerInfo.cc

    r8896 r8906  
    171171
    172172        this->changedControllableEntity();
     173                SpaceShip* spaceship = dynamic_cast<SpaceShip*>(entity);
     174        if (spaceship != NULL)
     175        {
     176            spaceship->setRVName(this->getName());
     177        }
    173178    }
    174179
     
    190195
    191196        this->changedControllableEntity();
    192 
    193                 SpaceShip* spaceship = dynamic_cast<SpaceShip*>(entity);
    194                 if (spaceship != NULL)
    195                 {
    196                         spaceship->setRVName(this->getName());
    197                 }
    198197    }
    199198
Note: See TracChangeset for help on using the changeset viewer.