summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2021-07-19 17:46:21 +0300
committerFedja Beader <fedja@protonmail.ch>2023-04-27 01:31:02 +0200
commit4936c4353089b4c2542741a153ed6106606b12d3 (patch)
tree931c32f81609471772e8d741d2da8926083d081a
parent279c7ba28804960ae3b2ec0753b4c3a92d5a6ede (diff)
downloadmanaplus-4936c4353089b4c2542741a153ed6106606b12d3.tar.gz
manaplus-4936c4353089b4c2542741a153ed6106606b12d3.tar.bz2
manaplus-4936c4353089b4c2542741a153ed6106606b12d3.tar.xz
manaplus-4936c4353089b4c2542741a153ed6106606b12d3.zip
Remove anti botting protection
-rw-r--r--src/game.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 4e3c399cd..002e75a61 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -683,9 +683,6 @@ void Game::slowLogic()
const time_t time = cur_time;
if (mTime != time)
{
- if (valTest(Updated))
- mValidSpeed = false;
-
mTime = time + 1;
if (debugWindow != nullptr)
debugWindow->slowLogic();
@@ -1248,7 +1245,6 @@ void Game::updateHistory(const SDL_Event &event)
void Game::checkKeys()
{
const int timeRange = 120;
- const int cntInTime = 130;
if ((localPlayer == nullptr) || (settings.attackType == 0U))
return;
@@ -1261,8 +1257,6 @@ void Game::checkKeys()
{
if (lastKey.time + timeRange < time)
{
- if (lastKey.cnt > cntInTime)
- mValidSpeed = false;
lastKey.key = InputAction::NO_VALUE;
}
}