From 8082c228c5d618e6f865f76b4d0518c2fde573ec Mon Sep 17 00:00:00 2001 From: fusion32 Date: Fri, 15 Aug 2025 15:48:19 -0300 Subject: wrapping up for a public release --- src/operate.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/operate.cc') diff --git a/src/operate.cc b/src/operate.cc index 92ba83e..b0c81e2 100644 --- a/src/operate.cc +++ b/src/operate.cc @@ -2892,10 +2892,10 @@ void RefreshMap(void){ continue; } - bool Refreshable = false; int OffsetX = -1; int OffsetY = -1; - HelpBuffer.reset(); + bool Refreshable = false; + HelpBuffer.Position = 0; try{ TReadScriptFile Script; Script.open(FileName); @@ -2914,13 +2914,9 @@ void RefreshMap(void){ uint8 *SectorOffset = Script.getBytesequence(); OffsetX = (int)SectorOffset[0]; OffsetY = (int)SectorOffset[1]; + Refreshable = false; Script.readSymbol(':'); - continue; - } - - // TODO(fusion): We don't enforce the token to be an identifier - // here as we do when loading any sector file in `map.cc`. - if(Script.Token == IDENTIFIER){ + }else if(Script.Token == IDENTIFIER){ if(OffsetX == -1 || OffsetY == -1){ Script.error("coordinate expected"); } -- cgit v1.2.3