Skip to content

Commit

Permalink
Heretic: Fixed beak attack
Browse files Browse the repository at this point in the history
No action request was made of the beak attack.
Now the action is requested like any normal
weapon firing.
  • Loading branch information
skyjake committed Jun 3, 2011
1 parent 127c045 commit 0ca9823
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doomsday/plugins/jheretic/src/p_pspr.c
Expand Up @@ -598,6 +598,10 @@ void P_FireWeapon(player_t *player)
statenum_t attackState;
int lvl = (player->powers[PT_WEAPONLEVEL2]? 1 : 0);

#ifdef _DEBUG
Con_Message("P_FireWeapon: player %i\n", player - players);
#endif

if(!P_CheckAmmo(player))
return;

Expand Down Expand Up @@ -715,8 +719,10 @@ void P_UpdateBeak(player_t *player, pspdef_t *psp)
void C_DECL A_BeakReady(player_t *player, pspdef_t *psp)
{
if(player->brain.attack)
{ // Chicken beak attack.
{
// Chicken beak attack.
player->attackDown = true;
NetCl_PlayerActionRequest(player, GPA_FIRE, 0);
P_MobjChangeState(player->plr->mo, S_CHICPLAY_ATK1);
if(player->powers[PT_WEAPONLEVEL2])
{
Expand Down

0 comments on commit 0ca9823

Please sign in to comment.