Skip to content
Permalink
Browse files
Fixed the upside-down piranha plants GFX shaking
Also, make sure other piranha plants will have the proper height value too
  • Loading branch information
Wohlstand committed Apr 10, 2021
1 parent 189685d commit e8165b59795a49851809a6495b1aad4346662daa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
@@ -16,6 +16,7 @@ Changes for 1.3.4.1
-Swooper can play the flap sound if presented at the assets pack
-Iceball may have the individual shoot sound of sounds.ini enables that
-Fixed an unexpected ability of Peach to spin-jump from off vines and on pressing of the ALT-JUMP while the JUMP key is held
-Fixed the GFX shaking of the upside down piranha plants when they got customized in some cases

Changes for 1.3.4
-Fixed the inability to use any custom sounds and custom music at level's custom data directory
@@ -3331,7 +3331,8 @@ void SpecialNPC(int A)
NPC[A].Location.Y -= 1.5;
if(NPC[A].Special >= NPCHeight[NPC[A].Type] * 0.65 + 1)
{
NPC[A].Location.Y = std::round(NPC[A].Location.Y);
NPC[A].Location.Y = vb6Round(NPC[A].Location.Y);
NPC[A].Location.Height = NPCHeight[NPC[A].Type];
NPC[A].Special2 = 2;
NPC[A].Special = 0;
}
@@ -3405,7 +3406,7 @@ void SpecialNPC(int A)
if(NPC[A].Location.X != NPC[A].DefaultLocation.X)
{
NPC[A].Killed = 2;
NPC[A].Location.Y = NPC[A].Location.Y - NPC[A].Location.SpeedY;
NPC[A].Location.Y -= NPC[A].Location.SpeedY;
}
else
{
@@ -3423,7 +3424,7 @@ void SpecialNPC(int A)
NPC[A].Location.Height += 1.5;
if(NPC[A].Special >= NPCHeight[NPC[A].Type] * 0.65 + 1)
{
NPC[A].Location.Height = std::floor(NPC[A].Location.Height);
NPC[A].Location.Height = NPCHeight[NPC[A].Type];
NPC[A].Special2 = 2;
NPC[A].Special = 0;
}
@@ -3496,7 +3497,7 @@ void SpecialNPC(int A)
NPC[A].Location.Width += 1.5 * NPC[A].Direction;
if(NPC[A].Special >= NPCWidth[NPC[A].Type] * 0.65 + 1)
{
NPC[A].Location.Width = std::floor(NPC[A].Location.Width);
NPC[A].Location.Width = NPCWidth[NPC[A].Type];
NPC[A].Special2 = 2;
NPC[A].Special = 0;
}

0 comments on commit e8165b5

Please sign in to comment.