Fixes #1219
This commit is contained in:
@@ -1789,7 +1789,7 @@ class ArmCustomFunctionField: public TransformedField {
|
|||||||
{
|
{
|
||||||
_mode = 0;
|
_mode = 0;
|
||||||
|
|
||||||
if (fn.func == FuncPlaySound || fn.func == FuncPlayPrompt || fn.func == FuncPlayValue)
|
if (fn.func == FuncPlaySound || fn.func == FuncPlayPrompt || fn.func == FuncPlayValue || fn.func == FuncPlayHaptic)
|
||||||
_active = (version >= 216 ? fn.repeatParam : (fn.repeatParam/5));
|
_active = (version >= 216 ? fn.repeatParam : (fn.repeatParam/5));
|
||||||
else
|
else
|
||||||
_active = (fn.enabled ? 1 : 0);
|
_active = (fn.enabled ? 1 : 0);
|
||||||
@@ -1861,7 +1861,7 @@ class ArmCustomFunctionField: public TransformedField {
|
|||||||
|
|
||||||
virtual void afterImport()
|
virtual void afterImport()
|
||||||
{
|
{
|
||||||
if (fn.func == FuncPlaySound || fn.func == FuncPlayPrompt || fn.func == FuncPlayValue)
|
if (fn.func == FuncPlaySound || fn.func == FuncPlayPrompt || fn.func == FuncPlayValue || fn.func == FuncPlayHaptic)
|
||||||
fn.repeatParam = (version >= 216 ? _active : (_active*5));
|
fn.repeatParam = (version >= 216 ? _active : (_active*5));
|
||||||
else
|
else
|
||||||
fn.enabled = (_active & 0x01);
|
fn.enabled = (_active & 0x01);
|
||||||
|
|||||||
Reference in New Issue
Block a user