mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Don't count self-destruct in death stat (since it's already counted), fix #35
This commit is contained in:
@@ -585,16 +585,6 @@ impl <L: super::CustomGameLogic> GenericGamemodeEngine<L> {
|
|||||||
conn.connection.connection.disconnect();
|
conn.connection.connection.disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let Some(killed) = self.users.read().await.get(&player_id) {
|
|
||||||
killed.counters.deaths.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
|
|
||||||
let data = killed.counters.get_generic_packet(player_id, rlnl::types::IngameStatId::RobotDestroyed, None);
|
|
||||||
self.broadcast(
|
|
||||||
rlnl::event_code::NetworkEvent::UpdateGameStats,
|
|
||||||
literustlib::packet::Property::ReliableOrdered,
|
|
||||||
&data,
|
|
||||||
true,
|
|
||||||
).await;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user