From 9ba97970686b6743131151cd508f76dd52865e21 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 7 May 2024 22:19:09 +0200 Subject: [PATCH] fixed CLI -picload --- mapeditor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mapeditor.cpp b/mapeditor.cpp index 29988792..1492237a 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -2602,16 +2602,16 @@ EX namespace mapeditor { bool onelayeronly; bool loadPicFile(const string& s) { - fhstream f(picfile, "rt"); + fhstream f(s, "rt"); if(!f.f) { - addMessage(XLAT("Failed to load pictures from %1", picfile)); + addMessage(XLAT("Failed to load pictures from %1", s)); return false; } scanline(f); scan(f, f.vernum); printf("vernum = %x\n", f.vernum); if(f.vernum == 0) { - addMessage(XLAT("Failed to load pictures from %1", picfile)); + addMessage(XLAT("Failed to load pictures from %1", s)); return false; } @@ -2639,6 +2639,7 @@ EX namespace mapeditor { } initShape(i, j); + println(hlog, "shape ", tie(i, j), " layer ", l); usershapelayer& ds(usershapes[i][j]->d[l]); if(f.vernum >= 0xA608) scan(f, ds.zlevel); ds.shift = readHyperpoint(f);