lego: Implement/match CalculateNewVel (#66)

* lego: Implement/match CalculateNewVel

* remove braces

* consistency
This commit is contained in:
Christian Semmler
2023-07-01 01:24:46 +02:00
committed by GitHub
parent 428b5ae8db
commit d7b8d6463b
4 changed files with 43 additions and 16 deletions

View File

@@ -45,16 +45,16 @@ MxDSObject &MxDSObject::operator=(MxDSObject &p_dsObject)
}
// OFFSET: LEGO1 0x100bf8e0
void MxDSObject::SetObjectName(const char *p_name)
void MxDSObject::SetObjectName(const char *p_objectName)
{
if (p_name != this->m_objectName) {
if (p_objectName != this->m_objectName) {
delete[] this->m_objectName;
if (p_name) {
this->m_objectName = new char[strlen(p_name) + 1];
if (p_objectName) {
this->m_objectName = new char[strlen(p_objectName) + 1];
if (this->m_objectName) {
strcpy(this->m_objectName, p_name);
strcpy(this->m_objectName, p_objectName);
}
}
else {