From fd5b203b06a80c5e4268b5b38a9a403e5f1c43b3 Mon Sep 17 00:00:00 2001 From: <> Date: Thu, 6 Jul 2017 17:53:43 -0700 Subject: [PATCH] Changed EntityConverter constructor - now pre-scans vector --- ReflexToQ3/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;