Skip to content

Commit 0386d60

Browse files
committed
Enhanced level loadings on old engine (pre-acit)
1 parent a6ec73a commit 0386d60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

LibLunacy/AssetLoader.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,13 @@ private void LoadZonesOld(ref Vector2 progress)
247247
IGFile main = fm.igfiles["main.dat"];
248248
IGFile.SectionHeader zoneSection = main.QuerySection(0x5000);
249249
progress.X = 0;
250-
progress.Y = zoneSection.count;
250+
progress.Y = 1;
251251
Console.WriteLine($"{zoneSection.count} zones detected (0x{zoneSection.length:X} bytes long)");
252-
for (int i = 0; i < zoneSection.count; i++)
252+
for (int i = 0; i < 1; i++)
253253
{
254254
CZone zone = new(main, this, i);
255255

256-
Console.WriteLine("[0x{0:X}] Zone {1} ({2}/{3}) has {4} ufrags", "unk", zone.name, i+1, zoneSection.count, zone.ufrags.Length);
256+
Console.WriteLine("[0x{0:X}] Zone {1} ({2}/{3}) has {4} ufrags", "unk", zone.name, i+1, 1, zone.ufrags.Length);
257257
zones.Add((ulong)i, zone);
258258

259259
ufrags.Add((ulong)zone.index, new());

ReLunacy/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ internal class Program
44
{
55
public const string AppName = "Lunacy_v2";
66
public const string AppDisplayName = "ReLunacy";
7-
public const string Version = "0.02";
7+
public const string Version = "0.03";
88
public static string ProvidedPath = "";
99
public static string AppPath { get => Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); }
1010

0 commit comments

Comments
 (0)