We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9b4be5 + ee64b83 commit 23aa8cbCopy full SHA for 23aa8cb
code/ship/shield.cpp
@@ -447,7 +447,7 @@ void render_shield(int shield_num)
447
// don't try to draw if we don't have an ani
448
if ( sa->first_frame >= 0 )
449
{
450
- frame_num = fl2i( f2fl(Missiontime - Shield_hits[shield_num].start_time) * sa->num_frames );
+ frame_num = fl2i( f2fl(Missiontime - Shield_hits[shield_num].start_time) / f2fl(SHIELD_HIT_DURATION) * sa->num_frames );
451
if ( frame_num >= sa->num_frames ) {
452
frame_num = sa->num_frames - 1;
453
} else if ( frame_num < 0 ) {
0 commit comments