Skip to content

Commit

Permalink
FIX - Windows c'est de la merde
Browse files Browse the repository at this point in the history
  • Loading branch information
deadbaed committed Jun 14, 2020
1 parent 02809c0 commit 4b49c69
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions BlockMap/blockMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ void BlockMap::Init(IAnimatedMesh* &mesh)

void BlockMap::Init()
{
std::string path = AssetSelector(GROUND_PATH);
std::string path = AssetSelector(GROUND_PATH).string();

if (GetType() == IGameObject::type_e::GROUND)
path = AssetSelector(GROUND_PATH);
path = AssetSelector(GROUND_PATH).string();
if (GetType() == IGameObject::type_e::DESTRUCTABLE_WALL)
path = AssetSelector(BLOCK_PATH);
path = AssetSelector(BLOCK_PATH).string();
if (GetType() == IGameObject::type_e::WALL)
path = AssetSelector(WALL_PATH);
path = AssetSelector(WALL_PATH).string();
if (GetType() == IGameObject::type_e::BORDER)
path = AssetSelector(WALL_PATH);
path = AssetSelector(WALL_PATH).string();
_node = _ctrl->_scene_mgr->addAnimatedMeshSceneNode(_ctrl->_scene_mgr->getMesh(path.c_str()));
_node->setMaterialFlag(irr::video::EMF_LIGHTING, false);
_node->setMD2Animation(scene::EMAT_STAND);
Expand Down

0 comments on commit 4b49c69

Please sign in to comment.