Code cleanup.
This commit is contained in:
@@ -254,8 +254,6 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
}
|
||||
else if (hitIndex == -1) hitIndex = index;
|
||||
_etor.ContextState = null;
|
||||
_etor.ContextEvent = null;
|
||||
index++;
|
||||
}
|
||||
if (hitIndex != -1) {
|
||||
@@ -263,11 +261,9 @@ namespace Cryville.Crtr {
|
||||
UpdateContextJudgeEvent(hitEvent);
|
||||
var def = hitEvent.Definition;
|
||||
if (def == _judgePause) _sys.TogglePause();
|
||||
if (def.on_hit != null) Execute(hitEvent, (ft + tt) / 2, def.on_hit, false);
|
||||
if (def.persist != null) _etor.Evaluate(_flagop, def.persist);
|
||||
else _flag = false;
|
||||
_etor.ContextState = null;
|
||||
_etor.ContextEvent = null;
|
||||
Execute(hitEvent, (ft + tt) / 2, def.on_hit, false);
|
||||
if (!_flag) {
|
||||
actlist.RemoveAt(hitIndex);
|
||||
--index;
|
||||
@@ -278,6 +274,8 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
}
|
||||
}
|
||||
_etor.ContextState = null;
|
||||
_etor.ContextEvent = null;
|
||||
}
|
||||
}
|
||||
public void Cleanup(Identifier target, float tt) {
|
||||
|
Reference in New Issue
Block a user