Changeset 7801 for code/trunk/src/modules
- Timestamp:
- Dec 22, 2010, 7:24:24 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/objects/ForceField.cc
r7677 r7801 60 60 this->setLength(2000); 61 61 this->mode_ = forceFieldMode::tube; 62 63 this->registerVariables(); 62 64 } 63 65 … … 83 85 XMLPortParam(ForceField, "mode", setMode, getMode, xmlelement, mode); 84 86 } 87 88 void ForceField::registerVariables() 89 { 90 registerVariable(this->velocity_, VariableDirection::ToClient); 91 registerVariable(this->radius_, VariableDirection::ToClient); 92 registerVariable(this->halfLength_, VariableDirection::ToClient); 93 registerVariable(this->mode_, VariableDirection::ToClient); 94 } 95 85 96 86 97 /** -
code/trunk/src/modules/objects/ForceField.h
r7678 r7801 88 88 89 89 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Creates a ForceField object through XML. 90 void registerVariables(); //!< Registers the variables that should get synchronised over the network 90 91 virtual void tick(float dt); //!< A method that is called every tick. 92 91 93 92 94 /** … … 141 143 float radius_; //!< The radius of the ForceField. 142 144 float halfLength_; //!< Half of the length of the ForceField. 143 forceFieldMode::Valuemode_; //!< The mode of the ForceField.145 int mode_; //!< The mode of the ForceField. 144 146 }; 145 147 } -
code/trunk/src/modules/overlays/hud/HUDBar.cc
r7401 r7801 85 85 this->bar_->setMaterialName(materialname); 86 86 87 this->value_ = 1.0f; // initi elize with 1.0f to trigger a change when calling setValue(0.0f) on the line below87 this->value_ = 1.0f; // initialize with 1.0f to trigger a change when calling setValue(0.0f) on the line below 88 88 this->setAutoColour(true); 89 89 this->setValue(0.0f); // <-- … … 161 161 if (this->right2Left_) 162 162 { 163 // backward case w163 // backward case 164 164 this->bar_->setPosition(0.06f + 0.88f * (1 - this->value_), 0.0f); 165 165 this->bar_->setDimensions(0.88f * this->value_, 1.0f); -
code/trunk/src/modules/overlays/hud/HUDNavigation.cc
r7401 r7801 24 24 * Co-authors: 25 25 * Reto Grieder 26 * Oliver Scheuss 26 27 * 27 28 */ … … 410 411 } 411 412 } 412 } 413 414 } -
code/trunk/src/modules/pickup/PickupManager.cc
r7549 r7801 61 61 /*static*/ const std::string PickupManager::guiName_s = "PickupInventory"; 62 62 63 // Register static ne wtork functions that are used to communicate changes to pickups over the network, such that the PickupInventory can display the information about the pickups properly.63 // Register static network functions that are used to communicate changes to pickups over the network, such that the PickupInventory can display the information about the pickups properly. 64 64 registerStaticNetworkFunction(PickupManager::pickupChangedUsedNetwork); 65 65 registerStaticNetworkFunction(PickupManager::pickupChangedPickedUpNetwork); -
code/trunk/src/modules/pickup/PickupSpawner.cc
r7549 r7801 120 120 PickupSpawner::~PickupSpawner() 121 121 { 122 if(this-> selfDestruct_ && this->pickup_ != NULL)122 if(this->isInitialized() && this->selfDestruct_ && this->pickup_ != NULL) 123 123 this->pickup_->destroy(); 124 124 } … … 317 317 assert(pickup); 318 318 assert(target); 319 assert(pickup->pickup(target)); 319 bool pickedUp = pickup->pickup(target); 320 assert(pickedUp); 321 pickedUp = false; // To avoid compiler warning. 320 322 321 323 this->decrementSpawnsRemaining(); -
code/trunk/src/modules/weapons/MuzzleFlash.cc
r7284 r7801 42 42 this->setScale(0.1f); 43 43 44 this->delayTimer_.setTimer(0.1f, false, createExecutor(createFunctor(&MuzzleFlash::destroy, this))); 44 if( GameMode::isMaster() ) 45 this->delayTimer_.setTimer(0.1f, false, createExecutor(createFunctor(&MuzzleFlash::destroy, this))); 45 46 } 46 47 }
Note: See TracChangeset
for help on using the changeset viewer.