mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 23:06:43 +00:00
[Client] Use correct function for setting global floats from packets
This commit is contained in:
parent
6287b7f6ec
commit
def981694d
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ void Worldstate::setClientGlobals()
|
||||||
if (clientGlobal.variableType == mwmp::VARIABLE_TYPE::SHORT || clientGlobal.variableType == mwmp::VARIABLE_TYPE::LONG)
|
if (clientGlobal.variableType == mwmp::VARIABLE_TYPE::SHORT || clientGlobal.variableType == mwmp::VARIABLE_TYPE::LONG)
|
||||||
MWBase::Environment::get().getWorld()->setGlobalInt(clientGlobal.id, clientGlobal.intValue);
|
MWBase::Environment::get().getWorld()->setGlobalInt(clientGlobal.id, clientGlobal.intValue);
|
||||||
else if (clientGlobal.variableType == mwmp::VARIABLE_TYPE::FLOAT)
|
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());
|
LOG_APPEND(TimedLog::LOG_INFO, "- %s", debugMessage.c_str());
|
||||||
|
|
Loading…
Reference in a new issue