This commit is contained in:
Claudel-D-Roy 2023-12-07 12:22:49 -05:00
parent b7b6a8cc7b
commit 3e8497f43b

View File

@ -145,13 +145,13 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr
else
index = 9;
}
else if (current.states.jumping && current.states.shooting) {
else if (current.states.jumping && current.states.shooting && m_position.y > 0) {
if (Shooting)
index = 41;
else
index = 33;
}
else if (current.states.jumping)
else if (current.states.jumping && m_position.y > 0)
index = 25;
else if (current.states.running && current.states.still)
index = 0;
@ -165,13 +165,13 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr
else
index = 10;
}
else if (current.states.jumping && current.states.shooting) {
else if (current.states.jumping && current.states.shooting && m_position.y > 0) {
if (Shooting)
index = 42;
else
index = 34;
}
else if (current.states.jumping)
else if (current.states.jumping && m_position.y > 0)
index = 26;
else if (current.states.running && current.states.still)
index = 1;
@ -185,13 +185,13 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr
else
index = 12;
}
else if (current.states.jumping && current.states.shooting) {
else if (current.states.jumping && current.states.shooting && m_position.y > 0) {
if (Shooting)
index = 44;
else
index = 36;
}
else if (current.states.jumping)
else if (current.states.jumping && m_position.y > 0)
index = 28;
else if (current.states.running && current.states.still)
index = 3;
@ -205,13 +205,13 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr
else
index = 14;
}
else if (current.states.jumping && current.states.shooting) {
else if (current.states.jumping && current.states.shooting && m_position.y > 0) {
if (Shooting)
index = 46;
else
index = 38;
}
else if (current.states.jumping)
else if (current.states.jumping && m_position.y > 0)
index = 30;
else if (current.states.running && current.states.still)
index = 5;
@ -224,13 +224,13 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr
else
index = 16;
}
else if (current.states.jumping && current.states.shooting) {
else if (current.states.jumping && current.states.shooting && m_position.y > 0) {
if (Shooting)
index = 48;
else
index = 40;
}
else if (current.states.jumping)
else if (current.states.jumping && m_position.y > 0)
index = 32;
else if (current.states.running && current.states.still)
index = 7;
@ -244,13 +244,13 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr
else
index = 11;
}
else if (current.states.jumping && current.states.shooting) {
else if (current.states.jumping && current.states.shooting && m_position.y > 0) {
if (Shooting)
index = 43;
else
index = 35;
}
else if (current.states.jumping)
else if (current.states.jumping && m_position.y > 0)
index = 27;
else if (current.states.running && current.states.still)
index = 2;
@ -264,13 +264,13 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr
else
index = 13;
}
else if (current.states.jumping && current.states.shooting) {
else if (current.states.jumping && current.states.shooting && m_position.y > 0) {
if (Shooting)
index = 45;
else
index = 37;
}
else if (current.states.jumping)
else if (current.states.jumping && m_position.y > 0)
index = 29;
else if (current.states.running && current.states.still)
index = 4;
@ -284,13 +284,13 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr
else
index = 15;
}
else if (current.states.jumping && current.states.shooting) {
else if (current.states.jumping && current.states.shooting && m_position.y > 0) {
if (Shooting)
index = 47;
else
index = 39;
}
else if (current.states.jumping)
else if (current.states.jumping && m_position.y > 0)
index = 31;
else if (current.states.running && current.states.still)
index = 6;