[Node] Directly query nodes

This commit is contained in:
momo5502 2017-01-12 18:32:15 +01:00
parent 558024754e
commit 428c1f24c3

View File

@ -70,10 +70,6 @@ namespace Components
} }
} }
CreateDirectoryW(L"players", NULL);
Utils::IO::WriteFile("players/nodes.dat", Utils::Compression::ZLib::Compress(list.SerializeAsString())); Utils::IO::WriteFile("players/nodes.dat", Utils::Compression::ZLib::Compress(list.SerializeAsString()));
} }
@ -272,7 +268,7 @@ namespace Components
// Frame limit // Frame limit
static int lastFrame = 0; static int lastFrame = 0;
if ((Game::Sys_Milliseconds() - lastFrame) < (1000 / NODE_FRAME_LOCK) || Game::Sys_Milliseconds() < 5000) return; if ((Game::Sys_Milliseconds() - lastFrame) < (1000 / NODE_FRAME_LOCK)/* || Game::Sys_Milliseconds() < 5000*/) return;
lastFrame = Game::Sys_Milliseconds(); lastFrame = Game::Sys_Milliseconds();
int registerCount = 0; int registerCount = 0;