Skip to content

Commit

Permalink
Merge pull request #1058 from Discozavisim/fix-disks
Browse files Browse the repository at this point in the history
Design Disks
  • Loading branch information
MrCat15352 authored Oct 11, 2024
2 parents 8c63704 + ecd9777 commit 0f5a715
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions code/modules/research/rdconsole.dm
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,17 @@ Nothing else in the console has ID requirements.
RDSCREEN_UI_DDISK_CHECK
var/list/l = list()
l += "Disk Operations: <A href='?src=[REF(src)];clear_design=0'>Clear Disk</A><A href='?src=[REF(src)];updt_design=0'>Upload All</A><A href='?src=[REF(src)];eject_design=1'>Eject Disk</A>"
for(var/i in 1 to d_disk.max_blueprints)
// [CELADON-EDIT] - CELADON_FIXES - Чиним диски
// for(var/i in 1 to d_disk.max_blueprints) // CELADON-EDIT - ORIGINAL
for(var/i in d_disk.blueprints)
// [/CELADON-EDIT]
l += "<div class='statusDisplay'>"
if(d_disk.blueprints[i])
var/datum/design/D = d_disk.blueprints[i]
// [CELADON-EDIT] - CELADON_FIXES - Чиним диски
// if(d_disk.blueprints[i])
// var/datum/design/D = d_disk.blueprints[i] // CELADON-EDIT - ORIGINAL
if(istype(i, /datum/design))
var/datum/design/D = i
// [/CELADON-EDIT]
l += "[D.icon_html(usr)] <A href='?src=[REF(src)];view_design=[D.id]'>[D.name]</A>"
l += "Operations: <A href='?src=[REF(src)];updt_design=[i]'>Upload to database</A> <A href='?src=[REF(src)];clear_design=[i]'>Clear Slot</A>"
else
Expand Down

0 comments on commit 0f5a715

Please sign in to comment.