Bugfix: Message displayed above clonk, instead of connected structure

liquid_container
Mark 2016-02-06 08:28:02 +01:00
parent e99ab4471a
commit d6f600bbd2
1 changed files with 2 additions and 2 deletions

View File

@ -137,8 +137,8 @@ func ConnectPipeTo(object target, string specific_pipe_state)
{
if (!target || target->~QueryConnectPipe(this)) return false;
var line = AddLineConnectionTo(target);
Sound("Objects::Connect");
target->OnPipeConnect(this, line, specific_pipe_state);
Sound("Objects::Connect");
return true;
}
@ -174,7 +174,7 @@ func AddLineConnectionTo(object target)
if (line->IsConnectedTo(this, true))
{
line->SwitchConnection(this, target);
Enter(line);
ScheduleCall(this, this.Enter, 1, nil, line); // delayed entrance, so that the message is still displayed above the clonk
return line;
}
else