Memory leak dealt with + removed obsolete debug trap
This commit is contained in:
parent
0a4d1f76b5
commit
d80dec600b
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue