Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10321 in orxonox.OLD for trunk/src/world_entities/creatures


Ignore:
Timestamp:
Jan 24, 2007, 10:28:18 AM (18 years ago)
Author:
patrick
Message:

silvans complete patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/creatures/fps_player.cc

    r10316 r10321  
    119119  registerEvent(EV_MOUSE_MOTION);
    120120
    121 
     121  this->aimingSystem = NULL;
    122122
    123123  // weapon manager for the fps
     
    241241
    242242
    243     this->aimingSystem->toList(OM_GROUP_01);
    244     this->aimingSystem->setParent(&this->cameraNode);
    245 //     this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE);
    246     this->aimingSystem->setRelDir(Quaternion(M_PI_4*-0.58f, Vector(0,0,1)));
    247     this->aimingSystem->setRelCoor(0, -1, -1);
     243    if( this->aimingSystem != NULL)
     244    {
     245      this->aimingSystem->toList(OM_GROUP_01);
     246      this->aimingSystem->setParent(&this->cameraNode);
     247  //     this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE);
     248      this->aimingSystem->setRelDir(Quaternion(M_PI_4*-0.58f, Vector(0,0,1)));
     249      this->aimingSystem->setRelCoor(0, -1, -1);
     250    }
    248251
    249252
Note: See TracChangeset for help on using the changeset viewer.