o lastinv fix

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@199 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
puzl 2005-06-19 14:50:07 +00:00
parent dae5cc64f9
commit a65f5b4ab2

View file

@ -288,7 +288,8 @@ void WeaponsResource::SetCurrentWeapon(WEAPON* newWeapon)
// && newWeapon != currentWeapon
if(newWeapon != NULL )
{
lastWeapon = currentWeapon;
if ( newWeapon != currentWeapon )
{ lastWeapon = currentWeapon; }
//if ( newWeapon != currentWeapon )
ServerCmd(newWeapon->szName);
g_weaponselect = newWeapon->iId;