mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
lego: Implement/match CalculateNewVel (#66)
* lego: Implement/match CalculateNewVel * remove braces * consistency
This commit is contained in:

committed by
GitHub

parent
428b5ae8db
commit
d7b8d6463b
@@ -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 {
|
||||
|
Reference in New Issue
Block a user