mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
CAI_NetworkBuilder::SaveNetworkGraph improvements
This commit is contained in:
parent
da800c1ad3
commit
be42e98197
@ -167,7 +167,7 @@ void CAI_NetworkBuilder::SaveNetworkGraph(CAI_Network* pNetwork)
|
|||||||
timer.Start();
|
timer.Start();
|
||||||
DevMsg(eDLL_T::SERVER, "+- Writing hull data...\n");
|
DevMsg(eDLL_T::SERVER, "+- Writing hull data...\n");
|
||||||
// Don't know what this is, it's likely a block from tf1 that got deprecated? should just be 1 int per node.
|
// Don't know what this is, it's likely a block from tf1 that got deprecated? should just be 1 int per node.
|
||||||
DevMsg(eDLL_T::SERVER, " |-- Writing '%d' bytes for unknown block at '0x%zX'\n", pNetwork->m_iNumNodes * sizeof(uint32_t), writer.GetPosition());
|
DevMsg(eDLL_T::SERVER, " |-- Writing '%d' bytes for node block at '0x%zX'\n", pNetwork->m_iNumNodes * sizeof(uint32_t), writer.GetPosition());
|
||||||
|
|
||||||
if (static_cast<int>(pNetwork->m_iNumNodes) > 0)
|
if (static_cast<int>(pNetwork->m_iNumNodes) > 0)
|
||||||
{
|
{
|
||||||
@ -184,11 +184,11 @@ void CAI_NetworkBuilder::SaveNetworkGraph(CAI_Network* pNetwork)
|
|||||||
writer.Write(&traverseNodeCount, sizeof(short));
|
writer.Write(&traverseNodeCount, sizeof(short));
|
||||||
|
|
||||||
// TODO: Ideally these should be actually dumped, but they're always 0 in r2 from what i can tell.
|
// TODO: Ideally these should be actually dumped, but they're always 0 in r2 from what i can tell.
|
||||||
DevMsg(eDLL_T::SERVER, " |-- Writing '%d' bytes for unknown hull block at '0x%zX'\n", MAX_HULLS * 8, writer.GetPosition());
|
DevMsg(eDLL_T::SERVER, " |-- Writing '%d' bytes for hull data block at '0x%zX'\n", MAX_HULLS * 8, writer.GetPosition());
|
||||||
char* unkHullBlock = new char[MAX_HULLS * 8];
|
for (int i = 0; i < (MAX_HULLS * 8); i++)
|
||||||
memset(unkHullBlock, '\0', MAX_HULLS * 8);
|
{
|
||||||
writer.Write(&unkHullBlock, MAX_HULLS * 8);
|
writer.Write<uint8_t>('\0');
|
||||||
delete[] unkHullBlock;
|
}
|
||||||
|
|
||||||
timer.End();
|
timer.End();
|
||||||
DevMsg(eDLL_T::SERVER, "...done writing hull data. %lf seconds\n", timer.GetDuration().GetSeconds());
|
DevMsg(eDLL_T::SERVER, "...done writing hull data. %lf seconds\n", timer.GetDuration().GetSeconds());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user