mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
[Client] Use correct function for setting global floats from packets
This commit is contained in:
parent
6287b7f6ec
commit
def981694d
@ -384,7 +384,7 @@ void Worldstate::setClientGlobals()
|
||||
if (clientGlobal.variableType == mwmp::VARIABLE_TYPE::SHORT || clientGlobal.variableType == mwmp::VARIABLE_TYPE::LONG)
|
||||
MWBase::Environment::get().getWorld()->setGlobalInt(clientGlobal.id, clientGlobal.intValue);
|
||||
else if (clientGlobal.variableType == mwmp::VARIABLE_TYPE::FLOAT)
|
||||
MWBase::Environment::get().getWorld()->setGlobalInt(clientGlobal.id, clientGlobal.floatValue);
|
||||
MWBase::Environment::get().getWorld()->setGlobalFloat(clientGlobal.id, clientGlobal.floatValue);
|
||||
}
|
||||
|
||||
LOG_APPEND(TimedLog::LOG_INFO, "- %s", debugMessage.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user