feat: remove sprinting

This commit is contained in:
str1k3r committed 2026-09-26 15:14:59 -04:00
1 parent 5b198d7b31
commit bdfe5350cd
14 files changed
+18 -196

No files matched your search

+5 -15
View File
@@ -435,10 +435,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
}
int y0 = 0;
// 4J-PB - no hardcore in xbox
// if (minecraft.level.getLevelData().isHardcore()) {
// y0 = 5;
// }
blit(xo, yo, 16 + bg * 9, 9 * 0, 9, 9);
if (blink)
{
@@ -513,11 +510,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
else if( minecraft->player->isSneaking() )
{
characterDisplayTimer[iPad] = 30;
}
else if( minecraft->player->isSprinting() )
{
characterDisplayTimer[iPad] = 30;
}
}
else if( minecraft->player->abilities.flying)
{
characterDisplayTimer[iPad] = 5; // quickly get rid of the player display if they stop flying
@@ -527,10 +520,9 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
--characterDisplayTimer[iPad];
}
bool displayCrouch = minecraft->player->isSneaking() || ( characterDisplayTimer[iPad] > 0 );
bool displaySprint = minecraft->player->isSprinting() || ( characterDisplayTimer[iPad] > 0 );
bool displayFlying = minecraft->player->abilities.flying || ( characterDisplayTimer[iPad] > 0 );
if( bDisplayGui && (displayCrouch || displaySprint || displayFlying) )
if( bDisplayGui && (displayCrouch || displayFlying) )
{
EntityRenderDispatcher::instance->prepare(minecraft->level, minecraft->textures, minecraft->font, minecraft->cameraTargetPlayer, minecraft->options, a);
glEnable(GL_RESCALE_NORMAL);
@@ -795,8 +787,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
#endif
lastTickA = a;
// 4J Stu - This is now displayed in a xui scene
#if 0
#if RENDER_HUD
// Jukebox CD message
if (overlayMessageTime > 0)
{
@@ -843,8 +834,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glDisable(GL_ALPHA_TEST);
// 4J Stu - We have moved the chat text to a xui
#if 0
#if RENDER_HUD
glPushMatrix();
// 4J-PB we need to move this up a bit because we've moved the quick select
//glTranslatef(0, ((float)screenHeight) - 48, 0);