mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Fixed some bugs from last commit (typo in SCRIPT_PARAM_DEFAULT_C definition)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@858 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -137,7 +137,7 @@ inline Type from_script(const ScriptValueP& v, Variable var) {
|
||||
ScriptValueP name##_ = ctx.getVariableOpt(str); \
|
||||
Type name = name##_ ? from_script<Type>(name##_, str) : def
|
||||
#define SCRIPT_PARAM_DEFAULT_C(Type, name, def) \
|
||||
SCRIPT_PARAM_DEFAULT_N(Type, SCRIPT_VAR_ ## name, name, name)
|
||||
SCRIPT_PARAM_DEFAULT_N(Type, SCRIPT_VAR_ ## name, name, def)
|
||||
|
||||
// ----------------------------------------------------------------------------- : Rules
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ void init_script_variables() {
|
||||
Var(in);
|
||||
Var(match);
|
||||
Var(replace);
|
||||
VarN(in_context,_("in context"));
|
||||
Var(order);
|
||||
Var(filter);
|
||||
Var(choice);
|
||||
|
||||
Reference in New Issue
Block a user