~leinnan/raylibGame unlisted

1bc64f5fd618c55bf05ea9defb29d501d190db47 — Leinnan 1 year, 3 months ago 2b27fb8
Little cleanup
1 files changed, 1 insertions(+), 2 deletions(-)

M src/main.cpp
M src/main.cpp => src/main.cpp +1 -2
@@ 39,7 39,6 @@ Camera camera;

int main(int argc, char **argv) {
    INIReader reader(argc == 2 ? argv[1] : CONFIG_PATH);
    auto& unitFactory = Factories::UnitFactory::getInstance();

    if (reader.ParseError() != 0) {
        std::cout << "Can't load "<< (argc == 2 ? argv[1] : CONFIG_PATH) <<"\n";


@@ 63,7 62,7 @@ int main(int argc, char **argv) {
    aiSystem.Init(registry);
    damageSystem.Init();

    unitFactory.loadFromFile(reader.Get("game","units","units.json"));
    Factories::UnitFactory::getInstance().loadFromFile(reader.Get("game","units","units.json"));
    Components::readFromFile(registry, jsonFile.c_str());

    camera = {0};