Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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!

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.