Fix akimbo expiring

Before, if player switched to akimbo just as it expired, he ended up with
akimbo and 0 ammo. Now his weapon will change to default weapon (the most
often primary), as if he would take akimbo in the hands.
This commit is contained in:
aurhat
2015-03-16 21:16:42 +01:00
parent d05ea601bd
commit 13ed2bd977
+1 -1
View File
@@ -1638,7 +1638,7 @@ void checkakimbo()
// fix akimbo magcontent
a.mag = 0;
a.ammo = 0;
if(player1->weaponsel->type==GUN_AKIMBO)
if(player1->weaponsel->type==GUN_AKIMBO || (player1->weaponchanging && player1->nextweaponsel->type==GUN_AKIMBO))
{
switch(akimboendaction)