Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit f84aa4c

Browse files
committed
Fix case
1 parent cb15fc8 commit f84aa4c

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Main.cpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -420,26 +420,26 @@ bool PlayIntroTitle() {
420420
BITMAP **apStarSmallBitmaps = starSmallFile.GetAsAnimation(starSmallBitmapCount);
421421
BITMAP **apStarLargeBitmaps = starLargeFile.GetAsAnimation(starLargeBitmapCount);
422422
BITMAP **apStarHugeBitmaps = starHugeFile.GetAsAnimation(starHugeBitmapCount);
423-
Star *Stars = new Star[starCount];
423+
Star *stars = new Star[starCount];
424424

425425
for (int star = 0; star < starCount; ++star) {
426426
if (RandomNum() < 0.95F) {
427427
// Default size is StarSmall.
428-
Stars[star].m_Bitmap = apStarSmallBitmaps[RandomNum(0, starSmallBitmapCount - 1)];
429-
Stars[star].m_Intensity = RandomNum(0, 92);
428+
stars[star].m_Bitmap = apStarSmallBitmaps[RandomNum(0, starSmallBitmapCount - 1)];
429+
stars[star].m_Intensity = RandomNum(0, 92);
430430
} else if (RandomNum() < 0.85F) {
431-
Stars[star].m_Size = StarLarge;
432-
Stars[star].m_Bitmap = apStarLargeBitmaps[RandomNum(0, starLargeBitmapCount - 1)];
433-
Stars[star].m_Intensity = RandomNum(111, 185);
431+
stars[star].m_Size = StarLarge;
432+
stars[star].m_Bitmap = apStarLargeBitmaps[RandomNum(0, starLargeBitmapCount - 1)];
433+
stars[star].m_Intensity = RandomNum(111, 185);
434434
} else {
435-
Stars[star].m_Size = StarHuge;
436-
Stars[star].m_Bitmap = apStarHugeBitmaps[RandomNum(0, starLargeBitmapCount - 1)];
437-
Stars[star].m_Intensity = RandomNum(166, 185);
435+
stars[star].m_Size = StarHuge;
436+
stars[star].m_Bitmap = apStarHugeBitmaps[RandomNum(0, starLargeBitmapCount - 1)];
437+
stars[star].m_Intensity = RandomNum(166, 185);
438438
}
439-
Stars[star].m_PosX = RandomNum(0, resX);
440-
Stars[star].m_PosY = RandomNum(0, pBackdrop->GetBitmap()->h);
439+
stars[star].m_PosX = RandomNum(0, resX);
440+
stars[star].m_PosY = RandomNum(0, pBackdrop->GetBitmap()->h);
441441
// To match the nebula scroll
442-
Stars[star].m_ScrollRatio = backdropScrollRatio;
442+
stars[star].m_ScrollRatio = backdropScrollRatio;
443443
}
444444

445445
// Font stuff
@@ -595,11 +595,11 @@ bool PlayIntroTitle() {
595595

596596
for (int star = 0; star < starCount; ++star)
597597
{
598-
const int intensity = Stars[star].m_Intensity + RandomNum(0, 35 * (Stars[star].m_Size + 1));
598+
const int intensity = stars[star].m_Intensity + RandomNum(0, 35 * (stars[star].m_Size + 1));
599599
set_screen_blender(intensity, intensity, intensity, intensity);
600-
const int &starDrawPosX = Stars[star].m_PosX;
601-
int starDrawPosY = Stars[star].m_PosY - static_cast<int>(scrollOffset.m_Y * Stars[star].m_ScrollRatio);
602-
draw_trans_sprite(g_FrameMan.GetBackBuffer32(), Stars[star].m_Bitmap, starDrawPosX, starDrawPosY);
600+
const int &starDrawPosX = stars[star].m_PosX;
601+
int starDrawPosY = stars[star].m_PosY - static_cast<int>(scrollOffset.m_Y * stars[star].m_ScrollRatio);
602+
draw_trans_sprite(g_FrameMan.GetBackBuffer32(), stars[star].m_Bitmap, starDrawPosX, starDrawPosY);
603603
}
604604

605605
planetPos.SetXY(g_FrameMan.GetResX() / 2, 567 - scrollOffset.GetFloorIntY());
@@ -1534,8 +1534,8 @@ bool PlayIntroTitle() {
15341534
pMoon = nullptr;
15351535
delete pStation;
15361536
pStation = nullptr;
1537-
delete[] Stars;
1538-
Stars = nullptr;
1537+
delete[] stars;
1538+
stars = nullptr;
15391539

15401540
if (g_FrameMan.ResolutionChanged()) { PlayIntroTitle(); }
15411541

0 commit comments

Comments
 (0)