diff --git a/ReflexToQ3/main.cpp b/ReflexToQ3/main.cpp index fe0bbcc..f275d9b 100644 --- a/ReflexToQ3/main.cpp +++ b/ReflexToQ3/main.cpp @@ -96,14 +96,15 @@ void print_entities(vector > &q) { } -void convert_entities(const cxxopts::Options &o, vector > &q) { +void convert_entities(const cxxopts::Options &o, const vector > &q) { string entfile = o["e"].as(); if (entfile.empty()) { cout << "No entity data file given" "- skipping entity conversion" << endl; return; } - EntityConverter e(entfile, o[ARG_INPUT_SHORTALIAS].as()); + EntityConverter e(entfile); + e.extractMapInfo(q); ofstream fout(o[ARG_OUTPUT_SHORTALIAS].as(), ios::app); brushdef fn = &brushdef_net; vector entity;