preset editor: add ability to draw world

This commit is contained in:
sshumakov3
2020-11-18 15:20:21 +03:00
parent 80b703a900
commit 6ead62f0b2
2 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ namespace noggit
void sensitivity_changed();
void model_set(std::string const& filename);
private:
protected:
QTimer _update_every_event_loop;
QPointF _last_mouse_pos;

View File

@@ -298,7 +298,7 @@ void MapCreationWizard::selectMap(int map_id)
delete _world;
}
_world = new World(record.getString(MapDB::InternalName), map_id);
_world = new World(record.getString(MapDB::InternalName), map_id, noggit::NoggitRenderContext::MAP_VIEW);
_minimap_widget->world(_world);
_directory->setText(record.getString(1));
@@ -471,7 +471,7 @@ void MapCreationWizard::addNewMap()
delete _world;
}
_world = new World("New_Map", _cur_map_id, true);
_world = new World("New_Map", _cur_map_id, noggit::NoggitRenderContext::MAP_VIEW, true);
_minimap_widget->world(_world);
_directory->setText("New_Map");