model dict in release mode workaround
authorTerri00 <thrustmediaproductions@gmail.com>
Mon, 18 Feb 2019 03:05:01 +0000 (03:05 +0000)
committerTerri00 <thrustmediaproductions@gmail.com>
Mon, 18 Feb 2019 03:05:01 +0000 (03:05 +0000)
MCDV.sln
MCDV/GLFWUtil.hpp
MCDV/MCDV.vcxproj
MCDV/main.cpp
MCDV/vbsp.hpp
MCDV_Lib/MCDV_Lib.vcxproj
deps.zip [new file with mode: 0644]

index 19730e5b7a6fc61f1e29c5b49198a52acda8f3e0..f9b9d19732cc3dd8ca97c4cb8af511cc1083c9ba 100644 (file)
--- a/MCDV.sln
+++ b/MCDV.sln
@@ -40,7 +40,6 @@ Global
                {21F22CE8-5445-44FA-8561-D3B8E94D55C5}.Release|x64.ActiveCfg = Release|x64
                {21F22CE8-5445-44FA-8561-D3B8E94D55C5}.Release|x64.Build.0 = Release|x64
                {21F22CE8-5445-44FA-8561-D3B8E94D55C5}.Release|x86.ActiveCfg = Release|Win32
-               {21F22CE8-5445-44FA-8561-D3B8E94D55C5}.Release|x86.Build.0 = Release|Win32
                {71666EC8-527E-4C98-BD6F-2FC0AA104350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
                {71666EC8-527E-4C98-BD6F-2FC0AA104350}.Debug|Any CPU.Build.0 = Debug|Any CPU
                {71666EC8-527E-4C98-BD6F-2FC0AA104350}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -52,7 +51,6 @@ Global
                {71666EC8-527E-4C98-BD6F-2FC0AA104350}.Release|x64.ActiveCfg = Release|Any CPU
                {71666EC8-527E-4C98-BD6F-2FC0AA104350}.Release|x64.Build.0 = Release|Any CPU
                {71666EC8-527E-4C98-BD6F-2FC0AA104350}.Release|x86.ActiveCfg = Release|Any CPU
-               {71666EC8-527E-4C98-BD6F-2FC0AA104350}.Release|x86.Build.0 = Release|Any CPU
                {B9C44160-6699-4DFF-AD66-AD39D83E8A21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
                {B9C44160-6699-4DFF-AD66-AD39D83E8A21}.Debug|Any CPU.Build.0 = Debug|Any CPU
                {B9C44160-6699-4DFF-AD66-AD39D83E8A21}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -64,7 +62,6 @@ Global
                {B9C44160-6699-4DFF-AD66-AD39D83E8A21}.Release|x64.ActiveCfg = Release|Any CPU
                {B9C44160-6699-4DFF-AD66-AD39D83E8A21}.Release|x64.Build.0 = Release|Any CPU
                {B9C44160-6699-4DFF-AD66-AD39D83E8A21}.Release|x86.ActiveCfg = Release|Any CPU
-               {B9C44160-6699-4DFF-AD66-AD39D83E8A21}.Release|x86.Build.0 = Release|Any CPU
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
index 52a3aff8b5f7ce3139aa4449caeb1b69c95e68ac..65b83c6a49f4ad490328c18fadde3f3d24d75295 100644 (file)
@@ -8,6 +8,8 @@ public:
        bool getKeyDown(int key) {
                if (glfwGetKey(this->windowHandle, key) == GLFW_PRESS)
                        return true;
+
+               return false;
        }
 
        util_keyHandler(GLFWwindow* window) {
index a3e0ab599992e74cc747d5be95d451cbe6f88396..a846f0b6db52481206831b7d6d1f73ba3c97748f 100644 (file)
@@ -22,7 +22,7 @@
     <VCProjectVersion>15.0</VCProjectVersion>
     <ProjectGuid>{3F5631FE-0F0C-4285-B301-66DA219121EC}</ProjectGuid>
     <RootNamespace>MCDV</RootNamespace>
-    <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
+    <WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
   </PropertyGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <IntrinsicFunctions>true</IntrinsicFunctions>
       <SDLCheck>true</SDLCheck>
+      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
     </ClCompile>
     <Link>
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
index dd519a31738ac6945d54301fa2a74321ecae9090..17639446a0583ee3516f66d81dafe6a042146b55 100644 (file)
@@ -38,8 +38,8 @@ float lastFrame = 0.0f;
 
 bool isClicking = false;
 
-double mousex;
-double mousey;
+double mousex = 0.0;
+double mousey = 0.0;
 
 Camera camera;
 
@@ -61,8 +61,8 @@ Radar* _radar;
 float M_ORTHO_SIZE = 20.0f;
 
 int main(int argc, char* argv[]) {
-       std::string _FILE_BSP = "";
-       std::string _FILE_NAV = "";
+       std::string _FILE_BSP = "D:\\Users\\Harry\\Source\\Repos\\MCDV\\Release\\killhouse.bsp";
+       std::string _FILE_NAV = "D:\\Users\\Harry\\Source\\Repos\\MCDV\\Release\\killhouse.nav";
 
        for (int i = 1; i < argc; ++i) {
                char* _arg = argv[i];
index c758f2440c70f7a9971beeea7b9871725e899cc8..0f2608bf5d2da8b0fd3ddd614f5dcc765ab289b6 100644 (file)
@@ -250,6 +250,16 @@ public:
 
                std::vector<bsp::staticprop> props;
 
+               // Prop reading is broken while building under Release mode
+               // Not sure why.
+               // TODO: Look into this.
+
+#ifndef _DEBUG
+               return props;
+#endif
+
+#ifdef _DEBUG
+
                for (int i = 0; i < numProps; i++) {
 
                        bsp::staticprop prop;
@@ -315,6 +325,8 @@ public:
                }
 
                return props;
+
+#endif
        }
 
        std::string readString(std::ifstream* reader, bsp::lumpHeader info) {
index 8fee6112826b3ce15abdfcc1f909c628a4947361..9e57999775f874418745cb8b7dbe8fdf9db28e0d 100644 (file)
@@ -26,7 +26,7 @@
     <ProjectGuid>{21F22CE8-5445-44FA-8561-D3B8E94D55C5}</ProjectGuid>
     <Keyword>Win32Proj</Keyword>
     <RootNamespace>MCDVLib</RootNamespace>
-    <WindowsTargetPlatformVersion>10.0.15063.0</WindowsTargetPlatformVersion>
+    <WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
   </PropertyGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
diff --git a/deps.zip b/deps.zip
new file mode 100644 (file)
index 0000000..e3b417b
Binary files /dev/null and b/deps.zip differ