Changeset 10698 in orxonox.OLD for trunk/src/world_entities/npcs
- Timestamp:
- Jun 14, 2007, 5:33:43 PM (18 years ago)
- 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 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 -
trunk/src/world_entities/npcs/npc.cc
r10618 r10698 407 407 { 408 408 int slot = ws->getWeaponSlot(); 409 int side = ws->getWeaponSide(); 409 // int side = ws->getWeaponSide(); //FIXME / REMOVE: is not used 410 410 this->getWeaponManager().setSlotPosition(slot, (*it).second->getCenter()); 411 411 this->getWeaponManager().setSlotDirection(slot, ws->getRelDir());
Note: See TracChangeset
for help on using the changeset viewer.