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:
dmitry 2021-09-10 19:42:24 +03:00
commit f55730ac6d
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37
11 changed files with 162 additions and 146 deletions

View file

@ -134,15 +134,15 @@ void MessageDispatcher::netMsgWeaponList () {
}
// store away this weapon with it's ammo information...
conf.getWeaponProp (m_args[id].long_) = {
m_args[classname].chars_,
m_args[ammo_index_1].long_,
m_args[max_ammo_1].long_,
m_args[slot].long_,
m_args[slot_pos].long_,
m_args[id].long_,
m_args[flags].long_
};
auto &prop = conf.getWeaponProp (m_args[id].long_);
prop.classname = m_args[classname].chars_;
prop.ammo1 = m_args[ammo_index_1].long_;
prop.ammo1Max = m_args[max_ammo_1].long_;
prop.slot = m_args[slot].long_;
prop.pos = m_args[slot_pos].long_;
prop.id = m_args[id].long_;
prop.flags = m_args[flags].long_;
}
void MessageDispatcher::netMsgCurWeapon () {