Memory leak dealt with + removed obsolete debug trap

This commit is contained in:
Dander7BD 2014-02-20 09:20:26 +01:00
parent 0a4d1f76b5
commit d80dec600b
3 changed files with 4 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ShowAllFiles>true</ShowAllFiles>
<ShowAllFiles>false</ShowAllFiles>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LocalDebuggerWorkingDirectory>$(OutDir)</LocalDebuggerWorkingDirectory>

View File

@ -16,8 +16,10 @@ C_Object::C_Object()
}
C_Object::~C_Object()
{
if( this->model )
this->Release();
}
bool C_Object::Init(ModelInitData modelInit)
{
position = modelInit.position;

View File

@ -136,11 +136,6 @@ void Camera_FPSV2::StrafeLeft( Float distance )
void Camera_FPSV2::PitchUp( Float radian )
{
if( radian >= 0.5f )
{ // HACK: debugging
const char *breakPoint = "";
}
this->pitchUp = Clamp( this->pitchUp + radian, -0.48f * pi, 0.48f * pi );
this->pitchHaveChanged = true;
}