summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/magic-expr.cpp1
-rw-r--r--src/map/script.cpp14
2 files changed, 4 insertions, 11 deletions
diff --git a/src/map/magic-expr.cpp b/src/map/magic-expr.cpp
index 9a44fa9..4acce91 100644
--- a/src/map/magic-expr.cpp
+++ b/src/map/magic-expr.cpp
@@ -255,7 +255,6 @@ void stringify(val_t *v)
CASE (const ValSpell&, x)
{
buf = x.v_spell->name;
- break;
}
CASE (const ValInvocationInt&, x)
{
diff --git a/src/map/script.cpp b/src/map/script.cpp
index c099339..d5eb379 100644
--- a/src/map/script.cpp
+++ b/src/map/script.cpp
@@ -1818,16 +1818,18 @@ int getarraysize(ScriptState *st, SIR reg)
{
if (u.str[0])
c = i;
- continue;
+ goto continue_outer;
}
CASE (const ScriptDataInt&, u)
{
if (u.numi)
c = i;
- continue;
+ goto continue_outer;
}
}
abort();
+ continue_outer:
+ ;
}
return c + 1;
}
@@ -4362,46 +4364,38 @@ void run_func(ScriptState *st)
CASE (const ScriptDataInt&, u)
{
PRINTF(" int(%d)"_fmt, u.numi);
- break;
}
CASE (const ScriptDataRetInfo&, u)
{
PRINTF(" retinfo(%p)"_fmt, static_cast<const void *>(u.script));
- break;
}
CASE (const ScriptDataParam&, u)
{
PRINTF(" param(%d)"_fmt, u.reg.sp());
- break;
}
CASE (const ScriptDataVariable&, u)
{
PRINTF(" name(%s)[%d]"_fmt, variable_names.outtern(u.reg.base()), u.reg.index());
- break;
}
CASE (const ScriptDataArg&, u)
{
(void)u;
PRINTF(" arg"_fmt);
- break;
}
CASE (const ScriptDataPos&, u)
{
(void)u;
PRINTF(" pos(%d)"_fmt, u.numi);
- break;
}
CASE (const ScriptDataStr&, u)
{
(void)u;
PRINTF(" str(%s)"_fmt, u.str);
- break;
}
CASE (const ScriptDataFuncRef&, u)
{
(void)u;
PRINTF(" func(%s)"_fmt, builtin_functions[u.numi].name);
- break;
}
}
}