Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.
This reverts commit a9be52c41a.
This commit is contained in:
@@ -54,12 +54,12 @@ void PauseScreen::buttonClicked(Button button)
|
||||
minecraft->level->disconnect();
|
||||
}
|
||||
|
||||
minecraft->setLevel(nullptr);
|
||||
minecraft->setLevel(NULL);
|
||||
minecraft->setScreen(new TitleScreen());
|
||||
}
|
||||
if (button.id == 4)
|
||||
{
|
||||
minecraft->setScreen(nullptr);
|
||||
minecraft->setScreen(NULL);
|
||||
// minecraft->grabMouse(); // 4J - removed
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ void PauseScreen::render(int xm, int ym, float a)
|
||||
{
|
||||
float col = ((visibleTime % 10) + a) / 10.0f;
|
||||
col = Mth::sin(col * PI * 2) * 0.2f + 0.8f;
|
||||
int br = static_cast<int>(255 * col);
|
||||
int br = (int) (255 * col);
|
||||
|
||||
drawString(font, L"Saving level..", 8, height - 16, br << 16 | br << 8 | br);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user