Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2008, 9:11:12 AM (16 years ago)
Author:
landauf
Message:
  • GlobalShader in dedicated mode works again
  • Shooting as a client works
  • Fixed problem with NotificationQueue
Location:
code/branches/presentation/src/orxonox/objects/worldentities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.cc

    r2497 r2501  
    545545        if (type != None && this->collisionType_ == None)
    546546        {
     547/*
    547548            // Check whether there was some scaling applied.
    548549            if (!this->node_->getScale().positionEquals(Vector3(1, 1, 1), 0.001))
     
    551552                return;
    552553            }
    553 
     554*/
    554555            // Create new rigid body
    555556            btRigidBody::btRigidBodyConstructionInfo bodyConstructionInfo(0, this, this->collisionShape_->getCollisionShape());
  • code/branches/presentation/src/orxonox/objects/worldentities/pawns/Pawn.cc

    r2500 r2501  
    4949
    5050        PawnManager::touch();
    51         this->getPickUp().setPlayer(this);
    5251        this->bAlive_ = true;
    5352        this->fire_ = 0x0;
     53        this->firehack_ = 0x0;
    5454
    5555        this->health_ = 0;
     
    6060
    6161        this->spawnparticleduration_ = 3.0f;
     62
     63        this->getPickUp().setPlayer(this);
    6264
    6365        if (Core::isMaster())
     
    108110        registerVariable(this->health_,        variableDirection::toclient);
    109111        registerVariable(this->initialHealth_, variableDirection::toclient);
    110         registerVariable(this->fire_,          variableDirection::toclient);
     112        registerVariable(this->fire_,          variableDirection::toserver);
    111113    }
    112114
     
    124126                this->weaponSystem_->fire(WeaponMode::altFire2);
    125127        }
    126         this->fire_ = 0x0;
     128        this->fire_ = this->firehack_;
     129        this->firehack_ = 0x0;
    127130
    128131        if (this->health_ <= 0)
     
    225228    void Pawn::fire(WeaponMode::Enum fireMode)
    226229    {
    227         this->fire_ |= fireMode;
     230        this->firehack_ |= fireMode;
    228231    }
    229232
  • code/branches/presentation/src/orxonox/objects/worldentities/pawns/Pawn.h

    r2500 r2501  
    116116            ShipEquipment pickUp;
    117117            bool bAlive_;
    118            
     118
    119119
    120120            float health_;
     
    126126            WeaponSystem* weaponSystem_;
    127127            unsigned int fire_;
     128            unsigned int firehack_;
    128129
    129130            std::string spawnparticlesource_;
Note: See TracChangeset for help on using the changeset viewer.