fix: used the incorrect magic values for the animation replayStyle of NPCs in the readNPCAnimation method
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -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)) {
|
||||
|
||||
@@ -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()
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user