mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
Makes all global variables handled by the GLOB controller (#13152)
* Handlers converted, now to fix 3532 compile errors * 3532 compile fixes later, got runtimes on startup * Well the server loads now atleast * Take 2 * Oops
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var/global/ntnet_card_uid = 1
|
||||
GLOBAL_VAR_INIT(ntnet_card_uid, 1)
|
||||
|
||||
/obj/item/computer_hardware/network_card
|
||||
name = "network card"
|
||||
@@ -26,8 +26,8 @@ var/global/ntnet_card_uid = 1
|
||||
|
||||
/obj/item/computer_hardware/network_card/New(var/l)
|
||||
..(l)
|
||||
identification_id = ntnet_card_uid
|
||||
ntnet_card_uid++
|
||||
identification_id = GLOB.ntnet_card_uid
|
||||
GLOB.ntnet_card_uid++
|
||||
|
||||
// Returns a string identifier of this network card
|
||||
/obj/item/computer_hardware/network_card/proc/get_network_tag()
|
||||
@@ -44,7 +44,7 @@ var/global/ntnet_card_uid = 1
|
||||
if(ethernet) // Computer is connected via wired connection.
|
||||
return 3
|
||||
|
||||
if(!ntnet_global || !ntnet_global.check_function(specific_action)) // NTNet is down and we are not connected via wired connection. No signal.
|
||||
if(!GLOB.ntnet_global || !GLOB.ntnet_global.check_function(specific_action)) // NTNet is down and we are not connected via wired connection. No signal.
|
||||
return 0
|
||||
|
||||
if(holder)
|
||||
|
||||
Reference in New Issue
Block a user