mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-04-27 17:16:31 +00:00
fix reading respawn for older maps (#784)
This commit is contained in:
parent
f02e9c0f6a
commit
366c3db7fe
@ -266,7 +266,7 @@ void Level::ReadSceneObjectDataChunk(std::ifstream& file, Header& header) {
|
|||||||
spawnInfo.respawnTime = std::stof(data->GetValueAsString());
|
spawnInfo.respawnTime = std::stof(data->GetValueAsString());
|
||||||
} else if (data->GetValueType() == eLDFType::LDF_TYPE_U32) // Ints are in ms?
|
} else if (data->GetValueType() == eLDFType::LDF_TYPE_U32) // Ints are in ms?
|
||||||
{
|
{
|
||||||
spawnInfo.respawnTime = std::stoi(data->GetValueAsString()) / 1000;
|
spawnInfo.respawnTime = std::stoul(data->GetValueAsString()) / 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (data->GetKey() == u"spawnsGroupOnSmash") {
|
if (data->GetKey() == u"spawnsGroupOnSmash") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user