mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-29 15:51:57 +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
|
// && newWeapon != currentWeapon
|
||||||
if( newWeapon != NULL )
|
if( newWeapon != NULL )
|
||||||
{
|
{
|
||||||
lastWeapon = currentWeapon;
|
if( newWeapon != currentWeapon )
|
||||||
//if ( newWeapon != currentWeapon )
|
{ lastWeapon = currentWeapon; }
|
||||||
ServerCmd(newWeapon->szName);
|
ServerCmd(newWeapon->szName);
|
||||||
g_weaponselect = newWeapon->iId;
|
g_weaponselect = newWeapon->iId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue