Fix setString
This commit is contained in:
parent
9ff6747c5a
commit
032667e91c
@ -88,7 +88,7 @@ namespace Components
|
|||||||
{
|
{
|
||||||
if (this->dvar && this->dvar->type == Game::dvar_type::DVAR_TYPE_STRING)
|
if (this->dvar && this->dvar->type == Game::dvar_type::DVAR_TYPE_STRING)
|
||||||
{
|
{
|
||||||
this->dvar->current.string = string;
|
Game::Dvar_SetCommand(this->dvar->name, string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void Dvar::Var::set(const std::string& string)
|
void Dvar::Var::set(const std::string& string)
|
||||||
@ -100,6 +100,7 @@ namespace Components
|
|||||||
if (this->dvar && this->dvar->type == Game::dvar_type::DVAR_TYPE_INT)
|
if (this->dvar && this->dvar->type == Game::dvar_type::DVAR_TYPE_INT)
|
||||||
{
|
{
|
||||||
this->dvar->current.integer = integer;
|
this->dvar->current.integer = integer;
|
||||||
|
this->dvar->latched.integer = integer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void Dvar::Var::set(float value)
|
void Dvar::Var::set(float value)
|
||||||
@ -107,6 +108,7 @@ namespace Components
|
|||||||
if (this->dvar && this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT)
|
if (this->dvar && this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT)
|
||||||
{
|
{
|
||||||
this->dvar->current.value = value;
|
this->dvar->current.value = value;
|
||||||
|
this->dvar->latched.value = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void Dvar::Var::set(bool enabled)
|
void Dvar::Var::set(bool enabled)
|
||||||
@ -114,6 +116,7 @@ namespace Components
|
|||||||
if (this->dvar && this->dvar->type == Game::dvar_type::DVAR_TYPE_BOOL)
|
if (this->dvar && this->dvar->type == Game::dvar_type::DVAR_TYPE_BOOL)
|
||||||
{
|
{
|
||||||
this->dvar->current.enabled = enabled;
|
this->dvar->current.enabled = enabled;
|
||||||
|
this->dvar->latched.enabled = enabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,6 +110,9 @@ namespace Game
|
|||||||
Dvar_InfoString_Big_t Dvar_InfoString_Big = Dvar_InfoString_Big_t(0x4D98A0);
|
Dvar_InfoString_Big_t Dvar_InfoString_Big = Dvar_InfoString_Big_t(0x4D98A0);
|
||||||
Dvar_SetCommand_t Dvar_SetCommand = Dvar_SetCommand_t(0x4EE430);
|
Dvar_SetCommand_t Dvar_SetCommand = Dvar_SetCommand_t(0x4EE430);
|
||||||
|
|
||||||
|
Free_String_t Free_String = Free_String_t(0x470E80);
|
||||||
|
Copy_String_t Copy_String = Copy_String_t(0x4F3C80);
|
||||||
|
|
||||||
Encode_Init_t Encode_Init = Encode_Init_t(0x462AB0);
|
Encode_Init_t Encode_Init = Encode_Init_t(0x462AB0);
|
||||||
|
|
||||||
Field_Clear_t Field_Clear = Field_Clear_t(0x437EB0);
|
Field_Clear_t Field_Clear = Field_Clear_t(0x437EB0);
|
||||||
|
Loading…
Reference in New Issue
Block a user