From cfe21e7e1d23a813763e8fddd1dc30e356b15169 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 6 May 2018 19:07:20 +0200 Subject: [PATCH] re-enable tests, allow more spell arguments. a list of ships, units, etc can be long! --- scripts/tests/e2/init.lua | 52 +++++++++++++++++++-------------------- src/magic.c | 2 +- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/scripts/tests/e2/init.lua b/scripts/tests/e2/init.lua index 59cb705e4..22195a1f4 100644 --- a/scripts/tests/e2/init.lua +++ b/scripts/tests/e2/init.lua @@ -1,27 +1,27 @@ require 'tests.e2.astral' --- require 'tests.e2.spells' --- require 'tests.e2.e2features' --- require 'tests.e2.insects' --- require 'tests.e2.buildings' --- require 'tests.e2.production' --- require 'tests.e2.adamantium' --- require 'tests.e2.undead' --- require 'tests.e2.shiplanding' --- require 'tests.e2.movement' --- require 'tests.e2.destroy' --- require 'tests.e2.guard' --- require 'tests.e2.stealth' --- require 'tests.e2.items' --- require 'tests.e2.ships' --- require 'tests.items' --- require 'tests.economy' --- require 'tests.orders' --- require 'tests.common' --- require 'tests.report' --- require 'tests.storage' --- require 'tests.magicbag' --- require 'tests.process' --- require 'tests.xmas' --- require 'tests.production' --- require 'tests.spells' --- require 'tests.undead' +require 'tests.e2.spells' +require 'tests.e2.e2features' +require 'tests.e2.insects' +require 'tests.e2.buildings' +require 'tests.e2.production' +require 'tests.e2.adamantium' +require 'tests.e2.undead' +require 'tests.e2.shiplanding' +require 'tests.e2.movement' +require 'tests.e2.destroy' +require 'tests.e2.guard' +require 'tests.e2.stealth' +require 'tests.e2.items' +require 'tests.e2.ships' +require 'tests.items' +require 'tests.economy' +require 'tests.orders' +require 'tests.common' +require 'tests.report' +require 'tests.storage' +require 'tests.magicbag' +require 'tests.process' +require 'tests.xmas' +require 'tests.production' +require 'tests.spells' +require 'tests.undead' diff --git a/src/magic.c b/src/magic.c index f95a6a2a3..892c78e68 100644 --- a/src/magic.c +++ b/src/magic.c @@ -2422,7 +2422,7 @@ static bool is_moving_ship(ship * sh) return false; } -#define MAX_PARAMETERS 8 +#define MAX_PARAMETERS 32 static castorder *cast_cmd(unit * u, order * ord) { char token[128];