mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-05 15:03:48 +00:00
Greatly simplifies docking initialization
This commit is contained in:
@@ -71,6 +71,15 @@
|
||||
var/override_enabled = 0 //when enabled, do not open/close doors or cycle airlocks and wait for the player to do it manually
|
||||
var/received_confirm = 0 //for undocking, whether the server has recieved a confirmation from the client
|
||||
|
||||
/datum/computer/file/embedded_program/docking/New()
|
||||
..()
|
||||
var/datum/existing = locate(id_tag) //in case a datum already exists with our tag
|
||||
if(existing)
|
||||
existing.tag = null //take it from them
|
||||
|
||||
tag = id_tag //Greatly simplifies shuttle initialization
|
||||
|
||||
|
||||
/datum/computer/file/embedded_program/docking/receive_signal(datum/signal/signal, receive_method, receive_param)
|
||||
var/receive_tag = signal.data["tag"] //for docking signals, this is the sender id
|
||||
var/command = signal.data["command"]
|
||||
|
||||
Reference in New Issue
Block a user