mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-13 22:03:09 +00:00
AI fixes
This commit is contained in:
@@ -894,7 +894,7 @@ function fakedsplit(ctx, desync)
|
|||||||
return desync.arg.nodrop and VERDICT_PASS or VERDICT_DROP
|
return desync.arg.nodrop and VERDICT_PASS or VERDICT_DROP
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
DLOG("fakedsplit: cannot resolve pos '"..desync.arg.pos.."'")
|
DLOG("fakedsplit: cannot resolve pos '"..spos.."'")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
DLOG("fakedsplit: not acting on further replay pieces")
|
DLOG("fakedsplit: not acting on further replay pieces")
|
||||||
@@ -1009,7 +1009,7 @@ function fakeddisorder(ctx, desync)
|
|||||||
return desync.arg.nodrop and VERDICT_PASS or VERDICT_DROP
|
return desync.arg.nodrop and VERDICT_PASS or VERDICT_DROP
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
DLOG("fakeddisorder: cannot resolve pos '"..desync.arg.pos.."'")
|
DLOG("fakeddisorder: cannot resolve pos '"..spos.."'")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
DLOG("fakeddisorder: not acting on further replay pieces")
|
DLOG("fakeddisorder: not acting on further replay pieces")
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#include <basetsd.h>
|
#include <basetsd.h>
|
||||||
typedef unsigned int size_t;// use the right type for length declarations
|
|
||||||
typedef UINT32 uint32_t;
|
typedef UINT32 uint32_t;
|
||||||
typedef UINT64 uint64_t;
|
typedef UINT64 uint64_t;
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -1285,7 +1285,7 @@ struct func_list *parse_lua_call(char *opt, struct func_list_head *flist)
|
|||||||
struct func_list *f = NULL;
|
struct func_list *f = NULL;
|
||||||
|
|
||||||
if (!(name = item_name(&opt)))
|
if (!(name = item_name(&opt)))
|
||||||
return false;
|
return NULL;
|
||||||
|
|
||||||
if (!is_identifier(name) || !(f=funclist_add_tail(flist,name)))
|
if (!is_identifier(name) || !(f=funclist_add_tail(flist,name)))
|
||||||
goto err;
|
goto err;
|
||||||
@@ -2538,7 +2538,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IDX_HOSTLIST_AUTO_FAIL_THRESHOLD:
|
case IDX_HOSTLIST_AUTO_FAIL_THRESHOLD:
|
||||||
dp->hostlist_auto_fail_threshold = (uint8_t)atoi(optarg);
|
dp->hostlist_auto_fail_threshold = atoi(optarg);
|
||||||
if (dp->hostlist_auto_fail_threshold < 1 || dp->hostlist_auto_fail_threshold>20)
|
if (dp->hostlist_auto_fail_threshold < 1 || dp->hostlist_auto_fail_threshold>20)
|
||||||
{
|
{
|
||||||
DLOG_ERR("auto hostlist fail threshold must be within 1..20\n");
|
DLOG_ERR("auto hostlist fail threshold must be within 1..20\n");
|
||||||
@@ -2547,7 +2547,7 @@ int main(int argc, char **argv)
|
|||||||
dp->b_hostlist_auto_fail_threshold = true;
|
dp->b_hostlist_auto_fail_threshold = true;
|
||||||
break;
|
break;
|
||||||
case IDX_HOSTLIST_AUTO_FAIL_TIME:
|
case IDX_HOSTLIST_AUTO_FAIL_TIME:
|
||||||
dp->hostlist_auto_fail_time = (uint8_t)atoi(optarg);
|
dp->hostlist_auto_fail_time = atoi(optarg);
|
||||||
if (dp->hostlist_auto_fail_time < 1)
|
if (dp->hostlist_auto_fail_time < 1)
|
||||||
{
|
{
|
||||||
DLOG_ERR("auto hostlist fail time is not valid\n");
|
DLOG_ERR("auto hostlist fail time is not valid\n");
|
||||||
@@ -2556,7 +2556,7 @@ int main(int argc, char **argv)
|
|||||||
dp->b_hostlist_auto_fail_time = true;
|
dp->b_hostlist_auto_fail_time = true;
|
||||||
break;
|
break;
|
||||||
case IDX_HOSTLIST_AUTO_RETRANS_THRESHOLD:
|
case IDX_HOSTLIST_AUTO_RETRANS_THRESHOLD:
|
||||||
dp->hostlist_auto_retrans_threshold = (uint8_t)atoi(optarg);
|
dp->hostlist_auto_retrans_threshold = atoi(optarg);
|
||||||
if (dp->hostlist_auto_retrans_threshold < 2 || dp->hostlist_auto_retrans_threshold>10)
|
if (dp->hostlist_auto_retrans_threshold < 2 || dp->hostlist_auto_retrans_threshold>10)
|
||||||
{
|
{
|
||||||
DLOG_ERR("auto hostlist fail threshold must be within 2..10\n");
|
DLOG_ERR("auto hostlist fail threshold must be within 2..10\n");
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ static int DLOG_FILENAME(const char *filename, const char *format, ...)
|
|||||||
}
|
}
|
||||||
static void file_log_function(int priority, const char *line)
|
static void file_log_function(int priority, const char *line)
|
||||||
{
|
{
|
||||||
DLOG_FILENAME(params.debug_logfile,"%s",log_buf);
|
DLOG_FILENAME(params.debug_logfile,"%s",line);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
|
|||||||
Reference in New Issue
Block a user