1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Fix build after c2a9cb34

`return` statements were missing, and those warnings do not need to be
behind #ifdefs, they do not expose any deprecated API.
This commit is contained in:
Rémi Verschelde
2018-08-27 10:10:40 +02:00
parent 3c0ea513de
commit ddfef86836
4 changed files with 5 additions and 16 deletions

View File

@@ -84,11 +84,10 @@ real_t PinJointBullet::get_param(PhysicsServer::PinJointParam p_param) const {
return p2pConstraint->m_setting.m_damping;
case PhysicsServer::PIN_JOINT_IMPULSE_CLAMP:
return p2pConstraint->m_setting.m_impulseClamp;
#ifndef DISABLE_DEPRECATED
default:
ERR_EXPLAIN("This parameter " + itos(p_param) + " is deprecated");
WARN_DEPRECATED
#endif // DISABLE_DEPRECATED
return 0;
}
}