diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2026-03-30 15:54:52 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2026-03-30 15:54:52 -0300 |
| commit | f9beda08323beddac2b7b362371c5d4eca374f34 (patch) | |
| tree | f355e2a61fa469b9658171c97bdef8cc490d9841 /src/map.cc | |
| parent | 995f50a9847a59aabf6d953ee5d7bbbcec7103db (diff) | |
| download | game-f9beda08323beddac2b7b362371c5d4eca374f34.tar.gz game-f9beda08323beddac2b7b362371c5d4eca374f34.zip | |
missing NEWLINE on non-patched fields + fix accept error on shutdown
Diffstat (limited to 'src/map.cc')
| -rw-r--r-- | src/map.cc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1569,6 +1569,10 @@ void PatchSector(int SectorX, int SectorY, int SectorZ, bool FullSector, } if(IN.Token == BYTES){ + if(OffsetX != -1 && OffsetY != -1 && !FieldPatched[OffsetX][OffsetY]){ + OUT.writeLn(); + } + uint8 *SectorOffset = IN.getBytesequence(); OffsetX = (int)SectorOffset[0]; OffsetY = (int)SectorOffset[1]; @@ -1634,6 +1638,10 @@ void PatchSector(int SectorX, int SectorY, int SectorZ, bool FullSector, IN.error("unknown map flag"); } } + + if(OffsetX != -1 && OffsetY != -1 && !FieldPatched[OffsetX][OffsetY]){ + OUT.writeLn(); + } } // NOTE(fusion): Step 4. |
