Editor: slightly less hardcoded teleport map
This commit is contained in:
@@ -765,6 +765,11 @@ void placeTool(SDLPP::Scene &scene) {
|
||||
global_vars.mouse.edit_box.getY(), false, true);
|
||||
new_obj->setTextureKeepSRC(global_vars.translucent_mod_texture);
|
||||
new_obj->setData(global_vars.current_tool->getData());
|
||||
if(new_obj->getId() == TELEPORT_MODIFIER_ID) {
|
||||
// TODO input
|
||||
new_obj->setTeleportLevel("test2.marmap");
|
||||
obj.setModifier(global_vars.current_tool->getId(), "test2.marmap");
|
||||
}
|
||||
new_obj->getCollisions()[0]->setId(EDITOR_TERRAIN_ID);
|
||||
// TODO createModifierBlock
|
||||
dynamic_cast<MarioBlock *>(new_obj.get())->setTerrain(false);
|
||||
|
||||
Reference in New Issue
Block a user