No, but it gets even better.

When I use this code for the second branch, it works in the development version, too:
c_trace(my.x, player.x, IGNORE_PASSABLE|IGNORE_ME);
if(you)
{
if(vec_dist(player.x, my.x) < 1000) // if(you == player)
{
...
My turret shots at the player (forget about the postprocessing effect):

When I publish the project, it seems that the "target" vector is broken.
The turret shots itself in its origin.

So maybe it´s just bad timing... hm...
Thanks so far for your answers.