Merge branch 'SQC-15_online' of https://github.com/CegepSTH/SQCSim2023 into SQC-15_online

This commit is contained in:
MarcEricMartel 2023-12-13 14:27:18 -05:00
commit 5e09305398

View File

@ -125,13 +125,15 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr
bool isLeft = side.y > 0; bool isLeft = side.y > 0;
time += elapsedTime; time += elapsedTime;
if (time >= 500) if (time >= 250)
{ {
time -= 500; time -= 250;
if (!current.states.shooting)
Shooting = !Shooting;
/*if (!current.states.shooting)
Shooting = false; Shooting = false;
else else
Shooting = true; Shooting = true;*/
} }
std::cout << "shooting : " << current.states.shooting << " jumping : " << current.states.jumping << " jumpshot : " << current.states.jumpshot << " running : " << current.states.running << " still : " << current.states.still << " dead : " << current.states.dead << " hit : " << current.states.hit << std::endl; std::cout << "shooting : " << current.states.shooting << " jumping : " << current.states.jumping << " jumpshot : " << current.states.jumpshot << " running : " << current.states.running << " still : " << current.states.still << " dead : " << current.states.dead << " hit : " << current.states.hit << std::endl;