Firing frame position not updated when the player dies

When the player is killed, the weapon drawn on the screen goes down under the lower boundary of the screen so it can't be seen. When the player shoots, the firing frame is drawn over the current weapon frame to a relative position, so the weapon looks like it's shooting. Although, when the player dies this position is not updated, so the firing frame remains in place on the screen until it did its time, then disappears. This can be seen for a little fraction of a second only, as frames change quickly to create a perception of motion to the player. The engine does not draw the next frames as it knows that the animation stopped, because the player is now dead.