fix: occupied point check radius calculated incorrectly
fix: occupied point calculation takes too much cpu power fix: buffer overrun in messaging processing fix: running bots on hlds 3111e (cs 1.5) on linux* build: added back correct ldscript for gcc and clang * for some reason only gcc-compiled binaries working on centos5.8 and hlds 3.1.1.1e. clang binaries crashing immediately, so if you want to run bot on ancient os and/or hlds you need to recompile with gcc, as default linux binaries built with clang.
This commit is contained in:
parent
6cd471ead2
commit
f55730ac6d
11 changed files with 162 additions and 146 deletions
|
|
@ -1612,6 +1612,9 @@ template <typename U> bool BotGraph::loadStorage (StringRef ext, StringRef name,
|
|||
bool isGraph = !!(options & StorageOption::Graph);
|
||||
MemFile file (strings.format ("%s%s/%s", getDataDirectory (true), isGraph ? "graph" : "train", filename)); // open the file
|
||||
|
||||
data.clear ();
|
||||
data.shrink ();
|
||||
|
||||
// resize data to fit the stuff
|
||||
auto resizeData = [&] (const size_t length) {
|
||||
data.resize (length); // for non-graph data the graph should be already loaded
|
||||
|
|
@ -1760,8 +1763,6 @@ bool BotGraph::loadGraphData () {
|
|||
ExtenHeader exten {};
|
||||
int32 outOptions = 0;
|
||||
|
||||
m_paths.clear ();
|
||||
|
||||
// check if loaded
|
||||
bool dataLoaded = loadStorage <Path> ("graph", "Graph", StorageOption::Graph, StorageVersion::Graph, m_paths, &exten, &outOptions);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue