Skip to content

Commit

Permalink
Use uppercase ?PAINT.CIF filenames
Browse files Browse the repository at this point in the history
Matters for case-sensitive operating systems, like Linux or OS X
  • Loading branch information
Pierre Etchemaite committed Feb 5, 2023
1 parent cadc7f3 commit 2f9906b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Scripts/Game/Items/DaggerfallUnityItemMCP.cs
Expand Up @@ -42,8 +42,8 @@ public TextFile.Token[] InitPaintingInfo(int paintingTextId = 250)
DFRandom.srand(message);
uint paintingIndex = DFRandom.rand() % 180;
dataSource.paintingFileIdx = paintingIndex & 7;
char paintingFileChar = (char)((paintingIndex >> 3) + 97);
dataSource.paintingFilename = paintingFileChar + "paint.cif";
char paintingFileChar = (char)((paintingIndex >> 3) + 'A');
dataSource.paintingFilename = paintingFileChar + "PAINT.CIF";

byte[] paintingRecord = DaggerfallUnity.Instance.ContentReader.PaintFileReader.Read(paintingIndex);
Debug.LogFormat("painting file: {0}, index: {1}, cif idx: {2}, record: {3} {4} {5}", dataSource.paintingFilename, paintingIndex, dataSource.paintingFileIdx, paintingRecord[0], paintingRecord[1], paintingRecord[2]);
Expand Down

0 comments on commit 2f9906b

Please sign in to comment.