style cleanup:

also fix for building ghost test and fix double free in one of the tests
This commit is contained in:
2012-06-17 09:58:26 +00:00
parent 245c94a75e
commit f5f25b81e8
66 changed files with 1903 additions and 1899 deletions

View File

@@ -191,7 +191,8 @@ bool SCA_JoystickSensor::Evaluate()
if (( m_bAllEvents && js->aAnyButtonPressIsPositive()) || (!m_bAllEvents && js->aButtonPressIsPositive(m_button))) {
m_istrig = 1;
result = true;
}else {
}
else {
if (m_istrig) {
m_istrig = 0;
result = true;