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:
XP-Cagey 2005-04-07 07:32:06 +00:00
parent 694fcad9a8
commit 9627bce290

View file

@ -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;
} }