Changeset 10698 in orxonox.OLD for trunk/src/world_entities/npcs/adm_turret.cc
- Timestamp:
- Jun 14, 2007, 5:33:43 PM (17 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/adm_turret.cc
r10694 r10698 140 140 this->isCeil = false; 141 141 this->playerVisible = false; 142 this->weapon = NULL; 142 143 143 144 … … 147 148 { 148 149 WorldEntity::tick(dt); 149 this->weapon->fire(false);150 if (this->weapon) this->weapon->fire(false); 150 151 this->updatePlayerVisible(); 151 152 … … 167 168 float angle = dv1.dot(dv2); 168 169 if (angle > 0.999) 169 170 this->weapon->fire(true);171 170 { 171 if (this->weapon) this->weapon->fire(true); 172 } 172 173 } 173 174 else
Note: See TracChangeset
for help on using the changeset viewer.