From 16ce550a83257f9af92a140b7af530bf7909458d Mon Sep 17 00:00:00 2001 From: Aragas Date: Thu, 8 Dec 2016 17:16:51 +0300 Subject: [PATCH] Graphic fix --- 2.5DHero/2.5DHero/Entites/Enviroment/WallBill.vb | 4 ++++ 2.5DHero/2.5DHero/Entites/Enviroment/WallBlock.vb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/2.5DHero/2.5DHero/Entites/Enviroment/WallBill.vb b/2.5DHero/2.5DHero/Entites/Enviroment/WallBill.vb index 7c2a203fb..c7cd9f1f1 100644 --- a/2.5DHero/2.5DHero/Entites/Enviroment/WallBill.vb +++ b/2.5DHero/2.5DHero/Entites/Enviroment/WallBill.vb @@ -2,6 +2,10 @@ Inherits Entity + Protected Overrides Function CalculateCameraDistance(CPosition As Vector3) as Single + Return MyBase.CalculateCameraDistance(CPosition) - 0.2F + End Function + Public Overrides Sub UpdateEntity() If Me.Rotation.Y <> Screen.Camera.Yaw Then Me.Rotation.Y = Screen.Camera.Yaw diff --git a/2.5DHero/2.5DHero/Entites/Enviroment/WallBlock.vb b/2.5DHero/2.5DHero/Entites/Enviroment/WallBlock.vb index 4ec1d287b..2cd0db2b4 100644 --- a/2.5DHero/2.5DHero/Entites/Enviroment/WallBlock.vb +++ b/2.5DHero/2.5DHero/Entites/Enviroment/WallBlock.vb @@ -2,6 +2,10 @@ Inherits Entity + Protected Overrides Function CalculateCameraDistance(CPosition As Vector3) as Single + Return MyBase.CalculateCameraDistance(CPosition) - 0.2F + End Function + Public Overrides Sub Render() Me.Draw(Me.Model, Textures, False) End Sub