Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 6, 2018, 6:07:53 PM (8 years ago)
Author:
landauf
Message:

[HUD_HS16] fixed issue that the hud shows pickups of ALL players/bots instead of just the own spaceship. fixed this by comparing objectIDs
note: network calls currently support only 5 arguments, so I removed representationObjectId which doesn't seem to be used (neither in C++ nor in Lua)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/overlays/hud/HUDPickupSystem.h

    r11705 r11708  
    3232
    3333#include "overlays/OverlaysPrereqs.h"
     34#include "pickup/PickupPrereqs.h"
    3435
    3536#include <vector>
     
    4849
    4950        virtual void tick(float dt) override;
     51
    5052        virtual void sizeChanged() override;
     53        virtual void changedOwner() override;
    5154
    5255    private:
    53         std::string getIcon(std::string repName);
     56        std::vector<const PickupInventoryContainer*> getPickupsForOwner() const;
     57        std::string getIcon(const std::string& repName) const;
    5458
    5559        std::vector<Ogre::OverlayElement*> items_;
     60        WeakPtr<Pawn> owner_;
    5661    };
    5762}
Note: See TracChangeset for help on using the changeset viewer.