diff options
author | adiblol <adiblol@hydrogen> | 2012-09-30 01:51:37 +0200 |
---|---|---|
committer | adiblol <adiblol@hydrogen> | 2012-09-30 01:51:37 +0200 |
commit | c36d0c8ed24775babd875e5f1ff7083e85fb2191 (patch) | |
tree | 8e4abf7dfe89b71b173ae4bb58902001b3d5bee4 /src/object/object.cpp | |
parent | b46dc3850f489dca68fabe4512a611aed32e7df5 (diff) | |
download | colobot-c36d0c8ed24775babd875e5f1ff7083e85fb2191.tar.gz colobot-c36d0c8ed24775babd875e5f1ff7083e85fb2191.tar.bz2 colobot-c36d0c8ed24775babd875e5f1ff7083e85fb2191.zip |
Fixed invradar cheat code.
Replaced CRobotMain::GetCheatRadar with CRobotMain::GetRadar.
Changed logger level of "invalid m_motion" messages.
Diffstat (limited to 'src/object/object.cpp')
-rw-r--r-- | src/object/object.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/object/object.cpp b/src/object/object.cpp index 0b1a39c..ec8b3c5 100644 --- a/src/object/object.cpp +++ b/src/object/object.cpp @@ -7524,7 +7524,7 @@ bool CObject::GetTraceDown() CMotionVehicle* mv = dynamic_cast<CMotionVehicle*>(m_motion); if (mv == nullptr) { - GetLogger()->Warn("GetTraceDown() invalid m_motion class!\n"); + GetLogger()->Debug("GetTraceDown() invalid m_motion class!\n"); return false; } return mv->GetTraceDown(); @@ -7536,7 +7536,7 @@ void CObject::SetTraceDown(bool bDown) CMotionVehicle* mv = dynamic_cast<CMotionVehicle*>(m_motion); if (mv == nullptr) { - GetLogger()->Warn("SetTraceDown() invalid m_motion class!\n"); + GetLogger()->Debug("SetTraceDown() invalid m_motion class!\n"); return; } mv->SetTraceDown(bDown); @@ -7548,7 +7548,7 @@ int CObject::GetTraceColor() CMotionVehicle* mv = dynamic_cast<CMotionVehicle*>(m_motion); if (mv == nullptr) { - GetLogger()->Warn("GetTraceColor() invalid m_motion class!\n"); + GetLogger()->Debug("GetTraceColor() invalid m_motion class!\n"); return 0; } return mv->GetTraceColor(); @@ -7560,7 +7560,7 @@ void CObject::SetTraceColor(int color) CMotionVehicle* mv = dynamic_cast<CMotionVehicle*>(m_motion); if (mv == nullptr) { - GetLogger()->Warn("SetTraceColor() invalid m_motion class!\n"); + GetLogger()->Debug("SetTraceColor() invalid m_motion class!\n"); return; } mv->SetTraceColor(color); @@ -7572,7 +7572,7 @@ float CObject::GetTraceWidth() CMotionVehicle* mv = dynamic_cast<CMotionVehicle*>(m_motion); if (mv == nullptr) { - GetLogger()->Warn("GetTraceWidth() invalid m_motion class!\n"); + GetLogger()->Debug("GetTraceWidth() invalid m_motion class!\n"); return 0.0f; } return mv->GetTraceWidth(); @@ -7584,7 +7584,7 @@ void CObject::SetTraceWidth(float width) CMotionVehicle* mv = dynamic_cast<CMotionVehicle*>(m_motion); if (mv == nullptr) { - GetLogger()->Warn("SetTraceWidth() invalid m_motion class!\n"); + GetLogger()->Debug("SetTraceWidth() invalid m_motion class!\n"); return; } mv->SetTraceWidth(width); |