Minor optimization of OTG (on the ground) hit check.
@@ -19981,6 +19981,8 @@ void do_attack(entity *e)
// Target laying down? Exit if
// attack only hits standing targets.
+ // Otherwise exit if attack only hits
+ // grounded targets.
if(target->takeaction == common_lie)
{
if(attack->otg == OTG_NONE)
@@ -19988,10 +19990,7 @@ void do_attack(entity *e)
continue;
}
}
-
- // Target NOT laying down? Exit if
- // attack only hits grounded targets.
- if(target->takeaction != common_lie)
+ else
{
if(attack->otg == OTG_GROUND_ONLY)
{
