Changeset 3074 for code/trunk/src/orxonox/objects/pickup
- Timestamp:
- May 25, 2009, 8:40:39 PM (16 years ago)
- Location:
- code/trunk/src/orxonox/objects/pickup
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.