From da2adeb755f1f05d7cda5d25d4eb7b18e5481647 Mon Sep 17 00:00:00 2001 From: Giacomand Date: Mon, 5 Aug 2013 02:32:28 +0100 Subject: [PATCH] * Changed max statements to 900. It was possible that it reached the 1000 limit before checking if there were too many statements. * Minor tweak to the length() proc. --- code/modules/scripting/Implementations/_Logic.dm | 1 + code/modules/scripting/Interpreter/Interpreter.dm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/scripting/Implementations/_Logic.dm b/code/modules/scripting/Implementations/_Logic.dm index 571d5a1849b..d4bc9976625 100644 --- a/code/modules/scripting/Implementations/_Logic.dm +++ b/code/modules/scripting/Implementations/_Logic.dm @@ -127,6 +127,7 @@ if(container) if(istype(container, /list) || istext(container)) return length(container) + return 0 // BY DONKIE~ // String stuff diff --git a/code/modules/scripting/Interpreter/Interpreter.dm b/code/modules/scripting/Interpreter/Interpreter.dm index dd33a2c333b..3e179ef59ee 100644 --- a/code/modules/scripting/Interpreter/Interpreter.dm +++ b/code/modules/scripting/Interpreter/Interpreter.dm @@ -33,7 +33,7 @@ status=0 returnVal - max_statements=1000 // maximum amount of statements that can be called in one execution. this is to prevent massive crashes and exploitation + max_statements=900 // maximum amount of statements that can be called in one execution. this is to prevent massive crashes and exploitation cur_statements=0 // current amount of statements called alertadmins=0 // set to 1 if the admins shouldn't be notified of anymore issues max_iterations=100 // max number of uninterrupted loops possible