can_player_build_unit_direct() double is_barbarian() call
can_player_build_unit_direct() does 'barbarian = is_barbarian(p)" assignment twice (in the beginning, and a bit later. It's already needed before the latter one). As it's a function call, compiler even cannot leave one out.
can_player_build_unit_direct() does 'barbarian = is_barbarian(p)" assignment twice (in the beginning, and a bit later. It's already needed before the latter one). As it's a function call, compiler even cannot leave one out.