Skip to content

Commit

Permalink
Fix Penguin grenade movetype being changed unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Jan 10, 2022
1 parent df5165b commit b8a1562
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game/server/entities/NPCs/other/penguin_grenade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,7 @@ void CPenguinGrenade::HuntThink()
pev->velocity = pev->velocity * 0.9;
pev->velocity.z += 8.0;
}
//TODO: fix this
else if (pev->movetype = MOVETYPE_FLY)
else if (pev->movetype == MOVETYPE_FLY)
{
pev->movetype = MOVETYPE_BOUNCE;
}
Expand Down

0 comments on commit b8a1562

Please sign in to comment.