mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix player having no damage alpha in mohaas and mohaab (#678)
This commit is contained in:
parent
ad527a7033
commit
e98c725043
1 changed files with 9 additions and 12 deletions
|
@ -6516,18 +6516,15 @@ void Player::DamageFeedback(void)
|
|||
//
|
||||
damage_blood = 0;
|
||||
|
||||
if (g_target_game >= target_game_e::TG_MOHTA) {
|
||||
//
|
||||
// Added in 2.0
|
||||
// No more damage angles since MOHTA
|
||||
//
|
||||
|
||||
if (IsSubclassOfPlayer()) {
|
||||
damage_count = 0;
|
||||
damage_blood = 0;
|
||||
damage_alpha = 0;
|
||||
damage_angles = vec_zero;
|
||||
}
|
||||
//
|
||||
// Added in 2.0
|
||||
// Don't show damage when in god mode
|
||||
//
|
||||
if (flags & FL_GODMODE) {
|
||||
damage_count = 0;
|
||||
damage_blood = 0;
|
||||
damage_alpha = 0;
|
||||
damage_angles = vec_zero;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue