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