Skip to content

Commit

Permalink
Add support for Nightmare in Vegas level
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianOzelRose committed Feb 25, 2024
1 parent b78ffe3 commit 2c8e896
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TombExtract/TR2Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void PopulateSourceSavegames(CheckedListBox cklSavegames)
UInt16 saveNumber = GetSaveNumber(savegameSourcePath, currentSavegameOffset);
byte levelIndex = GetLevelIndex(savegameSourcePath, currentSavegameOffset, levelIndexOffset);

if (saveNumber != 0 && levelIndex >= 1 && levelIndex <= 22)
if (saveNumber != 0 && levelIndex >= 1 && levelIndex <= 23)
{
string levelName = levelNames[levelIndex];
Savegame savegame = new Savegame(currentSavegameOffset, saveNumber, levelName);
Expand All @@ -127,7 +127,7 @@ public void PopulateDestinationSavegames(ListBox lstSavegames)
UInt16 saveNumber = GetSaveNumber(savegameDestinationPath, currentSavegameOffset);
byte levelIndex = GetLevelIndex(savegameDestinationPath, currentSavegameOffset, levelIndexOffset);

if (saveNumber != 0 && levelIndex >= 1 && levelIndex <= 22)
if (saveNumber != 0 && levelIndex >= 1 && levelIndex <= 23)
{
string levelName = levelNames[levelIndex];
Savegame savegame = new Savegame(currentSavegameOffset, saveNumber, levelName);
Expand Down
Binary file modified TombExtract/bin/x64/Release/TombExtract.exe
Binary file not shown.

0 comments on commit 2c8e896

Please sign in to comment.