Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2007, 3:23:23 PM (18 years ago)
Author:
muellmic
Message:

in this version the acid splasher isn't loaded anymore. it then doesn't crash when shooting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10306 r10332  
    179179//  spike2->setName( "SpikeLauncher" );
    180180
     181  /*
    181182  Weapon* acid0 = new AcidLauncher();
    182183  acid0->setName( "AcidSplasher" );
     
    184185  Weapon* acid1 = new AcidLauncher();
    185186  acid1->setName( "AcidSplasher" );
     187  */
    186188
    187189  this->weaponMan.addWeapon( wpLeft1, 0, 0);
     
    203205  this->weaponMan.addWeapon( wpRight3, 3, 5);
    204206
     207  /*
    205208  this->weaponMan.addWeapon( acid0, 0, 6);
    206209  this->weaponMan.addWeapon( acid1, 0, 7);
     210  */
    207211
    208212  this->secWeaponMan.addWeapon( cannon, 0, 2);
     
    368372  //this->travelDistancePlus = Vector2D(38.0, 43.0);
    369373  //this->travelDistanceMinus = Vector2D(-38.0, -43.0);
    370   this->travelDistancePlus = Vector2D(0,0);
    371   this->travelDistancePlus = Vector2D(0,0);
     374  this->travelDistancePlus = Vector2D(50,50);
     375  this->travelDistanceMinus = Vector2D(-50,-50);
    372376  this->isTravelDistanceInit = false;
    373377  this->actionWidthPercentage = 1;
     
    419423  LoadParam(root, "cameraDistance", this, SpaceShip, setCameraDistance);
    420424  LoadParam(root, "cameraFovy", this, SpaceShip, setCameraFovy);
    421   LoadParam(root, "actionWidthPercentage", this, SpaceShip, setActionWidthPercentage);
     425  //LoadParam(root, "actionWidthPercentage", this, SpaceShip, setActionWidthPercentage);
    422426
    423427  State::getCamera()->setViewMode(Camera::ViewTop);
     
    858862        this->travelNode->setAbsCoor(this->getAbsCoor());
    859863        this->travelNode->updateNode(0.01f);
    860         this->isTravelDistanceInit = false;
    861        
     864
     865        if (this->hasPlayer())
     866          this->isTravelDistanceInit = false;
     867
    862868        if(this->entityTrack)
    863869           this->travelNode->setParent(this->entityTrack->getTrackNode());
     
    11661172  //State::getPlayer()->hud().setOverlayPercentage(100-i);
    11671173  //updateTravelDistance();
    1168   this->isTravelDistanceInit = false;
     1174  if (this->hasPlayer())
     1175    this->isTravelDistanceInit = false;
    11691176};
Note: See TracChangeset for help on using the changeset viewer.