almoos dere

This commit is contained in:
MarcEricMartel
2023-12-18 13:29:38 -05:00
parent 68d03c1eac
commit f1bb7447f9
14 changed files with 125 additions and 68 deletions

View File

@@ -132,7 +132,7 @@ void Connection::sendPacks(SOCKET sock, std::unordered_map<uint64_t, Connection*
}
}
Timestamp Connection::Run(World* world) {
Timestamp Connection::Run(World* world, std::unordered_map<uint64_t, Booster*> boosters) {
Input in, last;
Output out;
Timestamp tstamp = 0;
@@ -169,7 +169,8 @@ Timestamp Connection::Run(World* world) {
in.keys.backward,
in.keys.left,
in.keys.right,
in.keys.jump, false, el), world, el);
in.keys.jump, false, el),
world, el, boosters);
if (player->GetPosition().y < -20.) {
player->InflictDamage(9000.);