Mario editor: started refactoring
This commit is contained in:
@@ -62,12 +62,12 @@ void ToolVisitor::visit( const SDLPP::RenderObject &obj ) {
|
||||
switch ( id ) {
|
||||
case EDITOR_TERRAIN_ID:
|
||||
remove_block = true;
|
||||
if(obj.getId() == source_id && getVisitorType() == TOOL_VISITOR_TYPE) {
|
||||
if(obj.getId() == source_id && getVisitorType() == VisitorType::Terrain) {
|
||||
add_block = false;
|
||||
}
|
||||
case EDITOR_CHARACTER_ID:
|
||||
remove_block = true;
|
||||
if(obj.getId() == source_id && getVisitorType() == MODIFIER_VISITOR_TYPE) {
|
||||
if(obj.getId() == source_id && getVisitorType() == VisitorType::Modifier) {
|
||||
add_block = false;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user