| 276 | } |
| 277 | |
| 278 | void CObjectPropertiesDialog::OnOK() { |
| 279 | // TODO: Add extra validation here |
| 280 | ddio_KeyFlush(); |
| 281 | m_PropPhysicsDlg->UpdateData(true); |
| 282 | CDialog::OnOK(); |
| 283 | m_bBounce = m_PropPhysicsDlg->m_bBounce; |
| 284 | m_fDrag = m_PropPhysicsDlg->m_fDrag; |
| 285 | m_fFullRotThrust = m_PropPhysicsDlg->m_fFullRotThrust; |
| 286 | m_fFullThrust = m_PropPhysicsDlg->m_fFullThrust; |
| 287 | m_bGravity = m_PropPhysicsDlg->m_bGravity; |
| 288 | m_bLevelling = m_PropPhysicsDlg->m_bLevelling; |
| 289 | m_bMagnetism = m_PropPhysicsDlg->m_bMagnetism; |
| 290 | m_fMass = m_PropPhysicsDlg->m_fMass; |
| 291 | m_fMaxTurnrollrate = m_PropPhysicsDlg->m_fMaxTurnrollrate; |
| 292 | m_iNumBounces = m_PropPhysicsDlg->m_iNumBounces; |
| 293 | m_bPersistent = m_PropPhysicsDlg->m_bPersistent; |
| 294 | m_fRotDrag = m_PropPhysicsDlg->m_fRotDrag; |
| 295 | m_fRotThrustX = m_PropPhysicsDlg->m_fRotThrustX; |
| 296 | m_fRotThrustY = m_PropPhysicsDlg->m_fRotThrustY; |
| 297 | m_fRotThrustZ = m_PropPhysicsDlg->m_fRotThrustZ; |
| 298 | m_fRotVelX = m_PropPhysicsDlg->m_fRotVelX; |
| 299 | m_fRotVelY = m_PropPhysicsDlg->m_fRotVelY; |
| 300 | m_fRotVelZ = m_PropPhysicsDlg->m_fRotVelZ; |
| 301 | m_bSticks = m_PropPhysicsDlg->m_bSticks; |
| 302 | m_fThrustX = m_PropPhysicsDlg->m_fThrustX; |
| 303 | m_fThrustY = m_PropPhysicsDlg->m_fThrustY; |
| 304 | m_fThrustZ = m_PropPhysicsDlg->m_fThrustZ; |
| 305 | m_bTurnroll = m_PropPhysicsDlg->m_bTurnroll; |
| 306 | m_fTurnrollRatio = m_PropPhysicsDlg->m_fTurnrollRatio; |
| 307 | m_sTurnrollAngle = m_PropPhysicsDlg->m_sTurnrollAngle; |
| 308 | m_bUsesThrust = m_PropPhysicsDlg->m_bUsesThrust; |
| 309 | m_fVelocityX = m_PropPhysicsDlg->m_fVelocityX; |
| 310 | m_fVelocityY = m_PropPhysicsDlg->m_fVelocityY; |
| 311 | m_fVelocityZ = m_PropPhysicsDlg->m_fVelocityZ; |
| 312 | m_bWiggle = m_PropPhysicsDlg->m_bWiggle; |
| 313 | m_fWiggleAmplitude = m_PropPhysicsDlg->m_fWiggleAmplitude; |
| 314 | m_fWigglesPerSecond = m_PropPhysicsDlg->m_fWigglesPerSecond; |
| 315 | m_bWind = m_PropPhysicsDlg->m_bWind; |
| 316 | m_bUnlimitedBounce = m_PropPhysicsDlg->m_bUnlimitedBounce; |
| 317 | } |
| 318 | |
| 319 | void CObjectPropertiesDialog::OnCancel() { |
| 320 | // TODO: Add extra cleanup here |
nothing calls this directly
no test coverage detected