checkGLError("Pre render");
GL11.glEnable(3553);
if(!this.online) {
this.gamemode.applyCracks(this.timer.delta);
float var65 = this.timer.delta;
Renderer var66 = this.renderer;
if(this.renderer.displayActive && !Display.isActive()) {
var66.minecraft.pause();
}
var66.displayActive = Display.isActive();
int var68;
int var70;
int var86;
int var81;
if(var66.minecraft.hasMouse) {
var81 = 0;
var86 = 0;
if(var66.minecraft.levelLoaded) {
if(var66.minecraft.canvas != null) {
Point var90;
var70 = (var90 = var66.minecraft.canvas.getLocationOnScreen()).x + var66.minecraft.width / 2;
var68 = var90.y + var66.minecraft.height / 2;
Point var75;
var81 = (var75 = MouseInfo.getPointerInfo().getLocation()).x - var70;
var86 = -(var75.y - var68);
var66.minecraft.robot.mouseMove(var70, var68);
} else {
Mouse.setCursorPosition(var66.minecraft.width / 2, var66.minecraft.height / 2);
}
} else {
var81 = Mouse.getDX();
var86 = Mouse.getDY();
}
byte var91 = 1;
if(var66.minecraft.settings.invertMouse) {
var91 = -1;
}
var66.minecraft.player.turn((float)var81, (float)(var86 * var91));
}
if(!var66.minecraft.online) {
var81 = var66.minecraft.width * 240 / var66.minecraft.height;
var86 = var66.minecraft.height * 240 / var66.minecraft.height;
int var94 = Mouse.getX() * var81 / var66.minecraft.width;
var70 = var86 - Mouse.getY() * var86 / var66.minecraft.height - 1;
if(var66.minecraft.level != null) {
float var80 = var65;
Renderer var82 = var66;
Renderer var27 = var66;
Player var28;
float var29 = (var28 = var66.minecraft.player).xRotO + (var28.xRot - var28.xRotO) * var65;
float var30 = var28.yRotO + (var28.yRot - var28.yRotO) * var65;
Vec3D var31 = var66.getPlayerVector(var65);
float var32 = MathHelper.cos(-var30 * 0.017453292F - 3.1415927F);