fix: used the incorrect magic values for the animation replayStyle of NPCs in the readNPCAnimation method

This commit is contained in:
dane committed 2024-06-18 20:27:05 -04:00
1 parent 01295ef7f9
commit dc20fdfc1e
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -7581,14 +7581,14 @@ public class Game extends GameShell {
if ((seqID == npc.primarySeqID) && (seqID != -1)) {
int style = SeqType.instances[seqID].replayStyle;
if (style == 0) {
if (style == 1) {
npc.primarySeqFrame = 0;
npc.primarySeqCycle = 0;
npc.primarySeqDelay = delay;
npc.primarySeqLoop = 0;
}
if (style == 1) {
if (style == 2) {
npc.primarySeqLoop = 0;
}
} else if ((seqID == -1) || (npc.primarySeqID == -1) || (SeqType.instances[seqID].priority >= SeqType.instances[npc.primarySeqID].priority)) {
+2 -2
View File
@@ -108,8 +108,8 @@ public class SeqType {
public int idleStyle = -1;
/**
* If 0, restarts the sequence if already playing
* If 1, does not restart if already playing
* If 1, restarts the sequence if already playing
* If 2, does not restart if already playing
*
* @see Game#readNPCUpdates()
*/