From a5e6556278b52171de04afef8a054ea212d8e254 Mon Sep 17 00:00:00 2001 From: driAn Date: Sun, 18 May 2008 17:54:49 +0000 Subject: [PATCH] weaponswitch sound for pistol too git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2040 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/physics.cpp | 2 +- source/src/weapon.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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(); }