make code more readable

This commit is contained in:
FutureRave 2022-02-19 23:10:35 +00:00
parent 53ebf0d91e
commit 7b91b9c781
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -83,7 +83,8 @@ namespace Components
if (this->dvar == nullptr) if (this->dvar == nullptr)
return vector; return vector;
if (this->dvar && (this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_2 || this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_3 || this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_4)) if (this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_2 || this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_3
|| this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_4)
{ {
return this->dvar->current.vector; return this->dvar->current.vector;
} }
@ -280,7 +281,7 @@ namespace Components
} }
} }
return Dvar::SetFromStringByNameExternal(dvarName, string); Dvar::SetFromStringByNameExternal(dvarName, string);
} }
void Dvar::SetFromStringByNameExternal(const char* dvarName, const char* string) void Dvar::SetFromStringByNameExternal(const char* dvarName, const char* string)