Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2009, 8:40:39 PM (16 years ago)
Author:
landauf
Message:

removed some warnings and fixed an include error

Location:
code/trunk/src/orxonox/objects/pickup
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/pickup/PickupCollection.cc

    r3073 r3074  
    9090    bool PickupCollection::checkSlot(BaseItem* item)
    9191    {
    92         return (this->items_.count(item->getPickupIdentifier()) < item->getMaxCarryAmount());
     92        return ((int)this->items_.count(item->getPickupIdentifier()) < item->getMaxCarryAmount());
    9393    }
    9494    /**
  • code/trunk/src/orxonox/objects/pickup/PickupInventory.cc

    r3073 r3074  
    250250    {
    251251        Pawn* pawn;
    252         if(pawn = HumanController::getLocalControllerEntityAsPawn())
     252        if((pawn = HumanController::getLocalControllerEntityAsPawn()))
    253253        {
    254254            std::deque<EquipmentItem*> items = pawn->getPickups().getEquipmentItems();
     
    274274    {
    275275        Pawn* pawn;
    276         if(pawn = HumanController::getLocalControllerEntityAsPawn())
     276        if((pawn = HumanController::getLocalControllerEntityAsPawn()))
    277277        {
    278278            std::deque<UsableItem*> items = pawn->getPickups().getUsableItems();
  • code/trunk/src/orxonox/objects/pickup/items/Jump.cc

    r3073 r3074  
    3333
    3434#include "Jump.h"
    35 #include "DroppedItem.h"
     35#include "objects/pickup/DroppedItem.h"
    3636
    3737#include "objects/worldentities/pawns/Pawn.h"
  • code/trunk/src/orxonox/objects/pickup/items/Jump.h

    r3073 r3074  
    3939#include "OrxonoxPrereqs.h"
    4040
    41 #include "UsableItem.h"
     41#include "objects/pickup/UsableItem.h"
    4242#include "util/Math.h"
    4343
Note: See TracChangeset for help on using the changeset viewer.