Mod texture

This commit is contained in:
2021-06-24 20:53:58 +02:00
parent b423ac7b8c
commit 2617156833
8 changed files with 40 additions and 13 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ void loadMap( std::shared_ptr< SDLPP::Scene > &scene,
// TODO createModifierBlock with data
auto mod = createTerrainBlock(
block.getModifierId(), LandType::OVERWORLD, renderer, i, j,
g_translucent_terrain_texture, false, editor );
g_translucent_mod_texture, false, editor );
mod->getCollisions()[0]->setId( EDITOR_TERRAIN_ID );
dynamic_cast< MarioBlock * >( mod.get() )->setTerrain( false );
scene->addObject( mod );