Update connection.cpp

This commit is contained in:
MarcEricMartel 2023-12-07 12:43:40 -05:00
parent 99a5054c8f
commit 11458214d0

View File

@ -171,12 +171,14 @@ Timestamp Connection::Run(World* world) {
}
else toggle = false;
out.states.jumpshot = false;
out.states.shooting = in.keys.shoot;
if (out.states.jumping && out.states.shooting)
out.states.jumpshot = true;
else out.states.jumpshot = false;
if (in.keys.shoot && m_shoot_acc <= 0.) {
Bullets.emplace_back(new Bullet(player->GetPOV() + player->GetDirection(), player->GetDirection(), GetHash(true)));
out.states.shooting = true;
if (out.states.jumping)
out.states.jumpshot = true;
m_shoot_acc = BULLET_TIME;
}