diff --git a/src/main/java/Game.java b/src/main/java/Game.java index b85e367..adfa682 100644 --- a/src/main/java/Game.java +++ b/src/main/java/Game.java @@ -6730,14 +6730,14 @@ public class Game extends GameShell { if ((seqID == npc.primarySeqID) && (seqID != -1)) { int style = SeqType.instances[seqID].replayStyle; - if (style == SeqType.REPLAY_STYLE_RESTART) { + if (style == 0) { npc.primarySeqFrame = 0; npc.primarySeqCycle = 0; npc.primarySeqDelay = delay; npc.primarySeqLoop = 0; } - if (style == SeqType.REPLAY_STYLE_CONTINUE) { + if (style == 1) { npc.primarySeqLoop = 0; } } else if ((seqID == -1) || (npc.primarySeqID == -1) || (SeqType.instances[seqID].priority >= SeqType.instances[npc.primarySeqID].priority)) { diff --git a/src/main/java/SeqType.java b/src/main/java/SeqType.java index 49f3be4..5c7a2ca 100644 --- a/src/main/java/SeqType.java +++ b/src/main/java/SeqType.java @@ -57,19 +57,11 @@ public class SeqType { public int idleStyle = -1; /** - * Restarts the sequence when played in a NPC/Player mask. + * If 0, restarts the sequence if already playing + * If 1, does not restart if already playing + * @see Game#method86(Buffer) */ - public static final int REPLAY_STYLE_RESTART = 1; - - /** - * Does not restart the sequence. - */ - public static final int REPLAY_STYLE_CONTINUE = 2; - - /** - * Describes how the seq should act if played while already active. - */ - public int replayStyle = REPLAY_STYLE_CONTINUE; + public int replayStyle = 1; public int unusedInt;