Fix squishing a shrunken enemy while changing weapon bug

git-svn-id: https://svn.eduke32.com/eduke32@216 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-07-09 19:51:09 +00:00
parent 6fb8ac956b
commit 2142db118e
2 changed files with 12 additions and 13 deletions

View file

@ -161,7 +161,8 @@ void addweapon( struct player_struct *p,short weapon)
p->kickback_pic = 0;
if(p->curr_weapon != weapon)
{
OnEvent(EVENT_CHANGEWEAPON,p->i, snum, -1);
p->curr_weapon = weapon;
SetGameVarID(g_iWeaponVarID,p->curr_weapon, p->i, snum);
@ -173,8 +174,6 @@ void addweapon( struct player_struct *p,short weapon)
{
SetGameVarID(g_iWorksLikeVarID,-1, p->i, snum);
}
OnEvent(EVENT_CHANGEWEAPON,p->i, snum, -1);
}
}
void checkavailinven( struct player_struct *p )

View file

@ -130,7 +130,7 @@ extern "C" {
// DEFAULT mouse sensitivity scale
#define DEFAULTMOUSESENSITIVITY 10
#define DEFAULTMOUSESENSITIVITY 18
enum
{