This commit is contained in:
MarcEricMartel
2023-12-13 14:06:22 -05:00
parent f509b01827
commit e31e670720
4 changed files with 12 additions and 6 deletions

View File

@@ -117,10 +117,10 @@ Timestamp Connection::Run(World* world) {
if (m_input_manifest.size() < 2)
return tstamp;
if (player->AmIDead()) {
m_input_manifest.clear();
return tstamp;
}
//if (player->AmIDead()) {
// m_input_manifest.clear();
// return tstamp;
//}
while (m_last_in < m_input_vector.size() - 1) {
in = m_input_vector.at(m_last_in + 1);
@@ -131,7 +131,7 @@ Timestamp Connection::Run(World* world) {
if (m_shoot_acc > 0.) {
m_shoot_acc -= el;
if (m_shoot_acc < 0.)
m_shoot_acc = 0;
m_shoot_acc = 0.;
}
player->SetDirection(in.direction);