mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-26 06:20:58 +00:00
Fixed loss of lastweapon information when user makes a redundant weapon selection (Mantis #956).
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@39 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
694fcad9a8
commit
9627bce290
1 changed files with 2 additions and 2 deletions
|
@ -271,8 +271,8 @@ void WeaponsResource::SetCurrentWeapon(WEAPON* newWeapon)
|
|||
// && newWeapon != currentWeapon
|
||||
if( newWeapon != NULL )
|
||||
{
|
||||
lastWeapon = currentWeapon;
|
||||
//if ( newWeapon != currentWeapon )
|
||||
if( newWeapon != currentWeapon )
|
||||
{ lastWeapon = currentWeapon; }
|
||||
ServerCmd(newWeapon->szName);
|
||||
g_weaponselect = newWeapon->iId;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue