fp: Fix regression on hit confirmation visual marker
This commit is contained in:
parent
e0681e6f70
commit
60071826aa
@ -2131,7 +2131,7 @@ void FP_Update(TELY_Platform *platform, FP_Game *game, TELY_PlatformInput *input
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
defender->hp = defender->hp >= attacker->base_attack ? defender->hp - attacker->base_attack : 0;
|
defender->hp = defender->hp >= attacker->base_attack ? defender->hp - attacker->base_attack : 0;
|
||||||
defender->hit_on_clock_ms = game->play.update_counter;
|
defender->hit_on_clock_ms = game->play.clock_ms;
|
||||||
defender->trauma01 = 1.f - (defender->hp / DQN_CAST(Dqn_f32)defender->hp_cap);
|
defender->trauma01 = 1.f - (defender->hp / DQN_CAST(Dqn_f32)defender->hp_cap);
|
||||||
|
|
||||||
if (defender->hp <= 0) {
|
if (defender->hp <= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user