Harmonize DelayLen for Player and Monster (was 1-based on monseter (>= DelayLen) and 0-based on player (> DelayLen). Now both are 1-based (>= DelayLen)

This commit is contained in:
obligaron 2021-06-27 05:31:26 +02:00 committed by Anders Jenbo
commit 3ba4bac5e2
7 changed files with 171 additions and 166 deletions

View file

@ -292,7 +292,7 @@ static void AssertPlayer(PlayerStruct &player)
ASSERT_EQ(player._pmode, 0);
ASSERT_EQ(Count8(player.walkpath, MAX_PATH_LENGTH), 25);
ASSERT_EQ(player._pgfxnum, 36);
ASSERT_EQ(player.AnimInfo.DelayLen, 3);
ASSERT_EQ(player.AnimInfo.DelayLen, 4);
ASSERT_EQ(player.AnimInfo.DelayCounter, 1);
ASSERT_EQ(player.AnimInfo.NumberOfFrames, 20);
ASSERT_EQ(player.AnimInfo.CurrentFrame, 1);