diff --git a/source/src/physics.cpp b/source/src/physics.cpp index 90f5642b..8bdfbbe6 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -261,7 +261,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) drop = rise = 0; water = hdr.waterlevel>pl->o.z; - const float speed = curtime/(water ? 2000.0f : 1000.0f)*pl->maxspeed; + const float speed = curtime*pl->maxspeed/(water ? 2000.0f : 1000.0f); const float friction = water ? 20.0f : (pl->onfloor || editfly || specfly ? 6.0f : 30.0f); const float fpsfric = friction/curtime*20.0f; diff --git a/source/src/weapon.cpp b/source/src/weapon.cpp index c79ee744..6471d733 100644 --- a/source/src/weapon.cpp +++ b/source/src/weapon.cpp @@ -891,6 +891,7 @@ void pistol::onselecting() { // switch immediately to akimbo if present if(owner->akimbo) owner->weaponswitch(owner->weapons[GUN_AKIMBO]); + else gun::onselecting(); }