Update #36 - Fix incorrect use of arithmetic shift, more capes

This commit is contained in:
lax1dude
2024-06-23 17:02:58 -07:00
parent 7425179b36
commit cc1fe13421
60 changed files with 421 additions and 210 deletions

View File

@ -741,12 +741,13 @@
+ }
+
> CHANGE 6 : 17 @ 6 : 54
> CHANGE 6 : 18 @ 6 : 54
~ Minecraft.getMinecraft().getRenderManager().setEnableFNAWSkins(this.gameSettings.enableFNAWSkins);
~ session.reset();
~ SingleplayerServerController.launchEaglercraftServer(folderName, gameSettings.difficulty.getDifficultyId(),
~ Math.max(gameSettings.renderDistanceChunks, 2), worldSettingsIn);
~ EagRuntime.setMCServerWindowGlobal("singleplayer");
~ this.displayGuiScreen(new GuiScreenIntegratedServerBusy(
~ new GuiScreenSingleplayerConnecting(new GuiMainMenu(), "Connecting to " + folderName),
~ "singleplayer.busy.startingIntegratedServer", "singleplayer.failed.startingIntegratedServer",
@ -787,7 +788,26 @@
~ return EaglercraftGPU.glGetString(7937) + " GL version " + EaglercraftGPU.glGetString(7938) + ", "
~ + EaglercraftGPU.glGetString(7936);
> DELETE 2 @ 2 : 12
> CHANGE 2 : 5 @ 2 : 5
~ theCrash.getCategory().addCrashSectionCallable("Is Eagler Shaders", new Callable<String>() {
~ public String call() throws Exception {
~ return Minecraft.this.gameSettings.shaders ? "Yes" : "No";
> CHANGE 2 : 6 @ 2 : 5
~ theCrash.getCategory().addCrashSectionCallable("Is Dynamic Lights", new Callable<String>() {
~ public String call() throws Exception {
~ return !Minecraft.this.gameSettings.shaders && Minecraft.this.gameSettings.enableDynamicLights ? "Yes"
~ : "No";
> INSERT 2 : 7 @ 2
+ theCrash.getCategory().addCrashSectionCallable("In Ext. Pipeline", new Callable<String>() {
+ public String call() throws Exception {
+ return GlStateManager.isExtensionPipeline() ? "Yes" : "No";
+ }
+ });
> CHANGE 2 : 3 @ 2 : 6
@ -812,7 +832,11 @@
> DELETE 2 @ 2 : 219
> CHANGE 13 : 14 @ 13 : 14
> INSERT 6 : 7 @ 6
+ EagRuntime.setMCServerWindowGlobal(serverDataIn != null ? serverDataIn.serverIP : null);
> CHANGE 7 : 8 @ 7 : 8
~ return SingleplayerServerController.isWorldRunning();

View File

@ -342,7 +342,14 @@
> DELETE 1 @ 1 : 3
> CHANGE 7 : 12 @ 7 : 8
> CHANGE 3 : 7 @ 3 : 5
~ if (enableBlur) {
~ this.drawGradientRect(0, 0, this.width, this.height, -2130706433, 16777215);
~ this.drawGradientRect(0, 0, this.width, this.height, 0, Integer.MIN_VALUE);
~ }
> CHANGE 2 : 7 @ 2 : 3
~ boolean minc = (double) this.updateCounter < 1.0E-4D;
~ if (this.isDefault) {

View File

@ -33,6 +33,6 @@
> INSERT 1 : 2 @ 1
+ this.mapTextureData[i] = (c & 0xFF00FF00) | ((c & 0x00FF0000) >> 16) | ((c & 0x000000FF) << 16);
+ this.mapTextureData[i] = (c & 0xFF00FF00) | ((c & 0x00FF0000) >>> 16) | ((c & 0x000000FF) << 16);
> EOF

View File

@ -126,9 +126,9 @@
> CHANGE 9 : 16 @ 9 : 65
~ GlStateManager.enableShaderBlendAdd();
~ float f1 = 1.0F - (float) (i >> 24 & 255) / 255.0F;
~ float f2 = (float) (i >> 16 & 255) / 255.0F;
~ float f3 = (float) (i >> 8 & 255) / 255.0F;
~ float f1 = 1.0F - (float) (i >>> 24 & 255) / 255.0F;
~ float f2 = (float) (i >>> 16 & 255) / 255.0F;
~ float f3 = (float) (i >>> 8 & 255) / 255.0F;
~ float f4 = (float) (i & 255) / 255.0F;
~ GlStateManager.setShaderBlendSrc(f1, f1, f1, 1.0F);
~ GlStateManager.setShaderBlendAdd(f2 * f1 + 0.4F, f3 * f1, f4 * f1, 0.0f);