From 3f8dafb50d17c67fa2887c6b653424853df2ad42 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 27 Jan 2019 08:02:44 +1100 Subject: [PATCH] fix linux build --- src/ClassiCube.sln | 10 ---------- src/Vectors.c | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/ClassiCube.sln b/src/ClassiCube.sln index 246879cca..d6e40a7cb 100644 --- a/src/ClassiCube.sln +++ b/src/ClassiCube.sln @@ -5,8 +5,6 @@ VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ClassiCube", "ClassiCube.vcxproj", "{8A7D82BD-178A-4785-B41B-70EDE998920A}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Pony", "..\..\PonyModel\Pony.vcxproj", "{8FCE93C4-A65B-4542-A4CC-EEE6A73E0901}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 @@ -23,14 +21,6 @@ Global {8A7D82BD-178A-4785-B41B-70EDE998920A}.Release|x64.Build.0 = Release|x64 {8A7D82BD-178A-4785-B41B-70EDE998920A}.Release|x86.ActiveCfg = Release|Win32 {8A7D82BD-178A-4785-B41B-70EDE998920A}.Release|x86.Build.0 = Release|Win32 - {8FCE93C4-A65B-4542-A4CC-EEE6A73E0901}.Debug|x64.ActiveCfg = Debug|x64 - {8FCE93C4-A65B-4542-A4CC-EEE6A73E0901}.Debug|x64.Build.0 = Debug|x64 - {8FCE93C4-A65B-4542-A4CC-EEE6A73E0901}.Debug|x86.ActiveCfg = Debug|Win32 - {8FCE93C4-A65B-4542-A4CC-EEE6A73E0901}.Debug|x86.Build.0 = Debug|Win32 - {8FCE93C4-A65B-4542-A4CC-EEE6A73E0901}.Release|x64.ActiveCfg = Release|x64 - {8FCE93C4-A65B-4542-A4CC-EEE6A73E0901}.Release|x64.Build.0 = Release|x64 - {8FCE93C4-A65B-4542-A4CC-EEE6A73E0901}.Release|x86.ActiveCfg = Release|Win32 - {8FCE93C4-A65B-4542-A4CC-EEE6A73E0901}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Vectors.c b/src/Vectors.c index 83fbcaa1a..9b199e597 100644 --- a/src/Vectors.c +++ b/src/Vectors.c @@ -17,7 +17,7 @@ void Vector3_Normalize(Vector3* result, const Vector3* a) { result->Z = a->Z * scale; } -void Vector3_Transform(Vector3* result, Vector3* a, const struct Matrix* mat) { +void Vector3_Transform(Vector3* result, const Vector3* a, const struct Matrix* mat) { /* a could be pointing to result - can't directly assign X/Y/Z therefore */ float x = a->X * mat->Row0.X + a->Y * mat->Row1.X + a->Z * mat->Row2.X + mat->Row3.X; float y = a->X * mat->Row0.Y + a->Y * mat->Row1.Y + a->Z * mat->Row2.Y + mat->Row3.Y;