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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.