diff options
author | Jorge Bernal <jbernalmartinez@gmail.com> | 2015-05-30 19:14:32 +0300 |
---|---|---|
committer | Jorge Bernal <jbernalmartinez@gmail.com> | 2015-05-30 19:15:11 +0300 |
commit | 71dcaa77446b5005d8b4d8f2afa94acfc3e21beb (patch) | |
tree | f5b295ab597c1927f3f1d345cf15045269067238 /source/gameengine | |
parent | a5a1d4aa3a26f1660c09aa2b09eb033f594af2c5 (diff) |
BGE Cleanup: Identical code for both if/else branches
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/GameLogic/SCA_PropertySensor.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/gameengine/GameLogic/SCA_PropertySensor.cpp b/source/gameengine/GameLogic/SCA_PropertySensor.cpp index 6f34f8710c1..6841d2a8ea1 100644 --- a/source/gameengine/GameLogic/SCA_PropertySensor.cpp +++ b/source/gameengine/GameLogic/SCA_PropertySensor.cpp @@ -265,13 +265,8 @@ bool SCA_PropertySensor::CheckPropertyCondition() //the concept of Edge and Level triggering has unwanted effect for KX_PROPSENSOR_CHANGED //see Game Engine bugtracker [ #3809 ] - if (m_checktype != KX_PROPSENSOR_CHANGED) - { - m_recentresult=result; - } else - { - m_recentresult=result;//true; - } + m_recentresult = result; + return result; } |