Fixed shuttle docking computers not working more than once (#33782)

* Fixed shuttle docking computers not moving the docking port if it already existed

* Removed explicit type instantiation
This commit is contained in:
Cruix
2017-12-26 23:43:23 -06:00
committed by CitadelStationBot
parent dc0e3a89d5
commit b0facbda47

View File

@@ -119,7 +119,7 @@
return
if(!my_port)
my_port = new(locate(eyeobj.x - x_offset, eyeobj.y - y_offset, eyeobj.z))
my_port = new()
my_port.name = shuttlePortName
my_port.id = shuttlePortId
my_port.height = shuttle_port.height
@@ -128,6 +128,7 @@
my_port.dwidth = shuttle_port.dwidth
my_port.hidden = shuttle_port.hidden
my_port.dir = the_eye.dir
my_port.forceMove(locate(eyeobj.x - x_offset, eyeobj.y - y_offset, eyeobj.z))
if(current_user.client)
current_user.client.images -= the_eye.placed_images