File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1468,16 +1468,10 @@ namespace Game3 {
14681468
14691469 {
14701470 auto velocity_lock = velocity.uniqueLock ();
1471- if (velocity.z != 0 .) {
1471+ if (velocity.z > 0.0 ) {
14721472 return ;
14731473 }
14741474
1475- {
1476- auto offset_lock = offset.sharedLock ();
1477- if (offset.z != 0 .)
1478- return ;
1479- }
1480-
14811475 velocity.z = getJumpSpeed ();
14821476 }
14831477
Original file line number Diff line number Diff line change 88
99namespace Game3 {
1010 void JumpPacket::handle (const std::shared_ptr<ServerGame> &, GenericClient &client) {
11- if (auto player = client.getPlayer ()) {
11+ if (ServerPlayerPtr player = client.getPlayer ()) {
1212 player->jump ();
1313 } else {
1414 client.send (make<ErrorPacket>(" No player." ));
You can’t perform that action at this time.
0 commit comments