Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10698 in orxonox.OLD for trunk/src/world_entities/npcs


Ignore:
Timestamp:
Jun 14, 2007, 5:33:43 PM (17 years ago)
Author:
snellen
Message:

merged adm, hud, vs-enhancements : beni's responsible for this commit. blame him!

Location:
trunk/src/world_entities/npcs
Files:
1 edited
4 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npcs/adm_turret.cc

    r10694 r10698  
    140140        this->isCeil = false;
    141141        this->playerVisible = false;
     142        this->weapon = NULL;
    142143
    143144       
     
    147148{
    148149  WorldEntity::tick(dt);
    149   this->weapon->fire(false);
     150  if (this->weapon) this->weapon->fire(false);
    150151  this->updatePlayerVisible();
    151152
     
    167168    float angle = dv1.dot(dv2);
    168169    if (angle > 0.999)
    169           {
    170      this->weapon->fire(true);
    171           }
     170    {
     171        if (this->weapon) this->weapon->fire(true);
     172    }
    172173  }
    173174  else
  • trunk/src/world_entities/npcs/npc.cc

    r10618 r10698  
    407407      {
    408408        int slot = ws->getWeaponSlot();
    409         int side = ws->getWeaponSide();
     409//         int side = ws->getWeaponSide(); //FIXME / REMOVE: is not used
    410410        this->getWeaponManager().setSlotPosition(slot, (*it).second->getCenter());
    411411        this->getWeaponManager().setSlotDirection(slot, ws->getRelDir());
Note: See TracChangeset for help on using the changeset viewer.