diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-08-15 15:48:19 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-08-15 15:50:32 -0300 |
| commit | 8082c228c5d618e6f865f76b4d0518c2fde573ec (patch) | |
| tree | 59e61abe98c3060fb1eb3677b9dbbb744c92174a /src/operate.cc | |
| parent | e4b8bf807b76f6f446d9617d9a3957dc77dd6e90 (diff) | |
| download | game-8082c228c5d618e6f865f76b4d0518c2fde573ec.tar.gz game-8082c228c5d618e6f865f76b4d0518c2fde573ec.zip | |
wrapping up for a public release
Diffstat (limited to 'src/operate.cc')
| -rw-r--r-- | src/operate.cc | 12 |
1 files changed, 4 insertions, 8 deletions
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"); } |
