Fix runtimes related to comp not being passed properly on modular computer creation (#10214)

This commit is contained in:
JohnWildkins
2020-10-09 11:58:23 -04:00
committed by GitHub
parent e7d046cf0c
commit 679ccf662c
2 changed files with 10 additions and 4 deletions
@@ -68,9 +68,9 @@
if(!computer)
return FALSE
computer.enrolled = 2 // private devices
computer.hard_drive.store_file(new /datum/computer_file/program/filemanager())
computer.hard_drive.store_file(new /datum/computer_file/program/ntnetdownload())
computer.hard_drive.store_file(new /datum/computer_file/program/chatclient())
computer.hard_drive.store_file(new /datum/computer_file/program/filemanager(computer))
computer.hard_drive.store_file(new /datum/computer_file/program/ntnetdownload(computer))
computer.hard_drive.store_file(new /datum/computer_file/program/chatclient(computer))
return TRUE
//Set´s up the programs from the preset
@@ -80,7 +80,7 @@
for (var/datum/modular_computer_app_presets/prs in ntnet_global.available_software_presets)
if(prs.name == preset && prs.available == 1)
var/list/prs_programs = prs.return_install_programs()
var/list/prs_programs = prs.return_install_programs(computer)
for (var/datum/computer_file/program/prog in prs_programs)
if(!prog.is_supported_by_hardware(computer.hardware_flag, FALSE))
continue