Changeset 3074
- Timestamp:
- May 25, 2009, 8:40:39 PM (16 years ago)
- Location:
- code/trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/Host.cc
r3059 r3074 108 108 for (ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it) 109 109 it->incomingChat(message, 0); 110 return true; 110 111 } 111 112 else -
code/trunk/src/orxonox/objects/pickup/PickupCollection.cc
r3073 r3074 90 90 bool PickupCollection::checkSlot(BaseItem* item) 91 91 { 92 return ( this->items_.count(item->getPickupIdentifier()) < item->getMaxCarryAmount());92 return ((int)this->items_.count(item->getPickupIdentifier()) < item->getMaxCarryAmount()); 93 93 } 94 94 /** -
code/trunk/src/orxonox/objects/pickup/PickupInventory.cc
r3073 r3074 250 250 { 251 251 Pawn* pawn; 252 if( pawn = HumanController::getLocalControllerEntityAsPawn())252 if((pawn = HumanController::getLocalControllerEntityAsPawn())) 253 253 { 254 254 std::deque<EquipmentItem*> items = pawn->getPickups().getEquipmentItems(); … … 274 274 { 275 275 Pawn* pawn; 276 if( pawn = HumanController::getLocalControllerEntityAsPawn())276 if((pawn = HumanController::getLocalControllerEntityAsPawn())) 277 277 { 278 278 std::deque<UsableItem*> items = pawn->getPickups().getUsableItems(); -
code/trunk/src/orxonox/objects/pickup/items/Jump.cc
r3073 r3074 33 33 34 34 #include "Jump.h" 35 #include " DroppedItem.h"35 #include "objects/pickup/DroppedItem.h" 36 36 37 37 #include "objects/worldentities/pawns/Pawn.h" -
code/trunk/src/orxonox/objects/pickup/items/Jump.h
r3073 r3074 39 39 #include "OrxonoxPrereqs.h" 40 40 41 #include " UsableItem.h"41 #include "objects/pickup/UsableItem.h" 42 42 #include "util/Math.h" 43 43 -
code/trunk/src/orxonox/objects/weaponsystem/Munition.cc
r3053 r3074 356 356 return false; 357 357 358 if (amount <= needed_magazines)358 if (amount <= (unsigned int)needed_magazines) 359 359 { 360 360 // We need more magazines than we get, so just add them -
code/trunk/src/orxonox/objects/weaponsystem/WeaponSystem.cc
r3053 r3074 214 214 unsigned int i = 0; 215 215 Weapon* weapon = 0; 216 while ( weapon = wPack->getWeapon(i++))216 while ((weapon = wPack->getWeapon(i++))) 217 217 weapon->getWeaponSlot()->removeWeapon(); 218 218
Note: See TracChangeset
for help on using the changeset viewer.