quicknadethrow : switch weapon even if player is attacking
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6377 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -110,7 +110,7 @@ void quicknadethrow(bool on)
|
||||
if(player1->state != CS_ALIVE) return;
|
||||
if(on)
|
||||
{
|
||||
if(player1->weapons[GUN_GRENADE]->mag > 0 && !player1->attacking)
|
||||
if(player1->weapons[GUN_GRENADE]->mag > 0)
|
||||
{
|
||||
if(player1->weaponsel->type != GUN_GRENADE) selectweapon(player1->weapons[GUN_GRENADE]);
|
||||
if(player1->weaponsel->type == GUN_GRENADE || quicknade_hold) { player1->attacking = true; nadeattack = true; }
|
||||
|
||||
Reference in New Issue
Block a user