Fix backtrack issues

This commit is contained in:
LightCat 2018-08-03 20:26:46 +02:00
parent 09d105adcc
commit 7125e94f49
2 changed files with 5 additions and 3 deletions

View File

@ -302,11 +302,13 @@ float getLatency()
int getTicks()
{
return max(min(*latency / 15, 65), 12);
return max(min(int(*latency / 200.0f * 13.0f) + 12, 65), 12);
}
int getTicks2()
{
return (*latency > 800 || *latency < 200) ? 12 : 24;
// Removed for now
//return (*latency > 800 || *latency < 200) ? 12 : 24;
12;
}
}

View File

@ -71,7 +71,7 @@ DEFINE_HOOKED_METHOD(DispatchUserMessage, bool, void *this_, int type,
}
if (chat_filter_enable && data[0] != LOCAL_E->m_IDX)
{
if (chat_filter.toString() != "")
if (sizeof(*chat_filter) > 5)
{
std::string tmp = {};
std::string tmp2 = {};