Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dbc9cb2

Browse filesBrowse files
author
ike709
committed
Fixes some computer dirs
1 parent 58aa826 commit dbc9cb2
Copy full SHA for dbc9cb2

5 files changed

+17-14Lines changed: 17 additions & 14 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.gitignore‎

Copy file name to clipboardExpand all lines: .gitignore
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,6 @@ Temporary Items
192192

193193
#Visual studio stuff
194194
*.vscode/*
195+
196+
#GitHub Atom
197+
.atom-build.json
Collapse file

‎code/game/machinery/computer/Operating.dm‎

Copy file name to clipboardExpand all lines: code/game/machinery/computer/Operating.dm
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
find_table()
1414

1515
/obj/machinery/computer/operating/proc/find_table()
16-
for(var/dir in GLOB.cardinals)
17-
table = locate(/obj/structure/table/optable, get_step(src, dir))
16+
for(var/direction in GLOB.cardinals)
17+
table = locate(/obj/structure/table/optable, get_step(src, direction))
1818
if(table)
1919
table.computer = src
2020
break
21-
21+
2222
/obj/machinery/computer/operating/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
2323
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
2424
if(!ui)
@@ -60,7 +60,7 @@
6060
var/alternative_step
6161
if(surgery_step.repeatable)
6262
var/datum/surgery_step/next_step = procedure.get_surgery_next_step()
63-
if(next_step)
63+
if(next_step)
6464
alternative_step = capitalize(next_step.name)
6565
else
6666
alternative_step = "Finish operation"
Collapse file

‎code/game/machinery/computer/teleporter.dm‎

Copy file name to clipboardExpand all lines: code/game/machinery/computer/teleporter.dm
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
/obj/machinery/computer/teleporter/proc/link_power_station()
2828
if(power_station)
2929
return
30-
for(dir in GLOB.cardinals)
31-
power_station = locate(/obj/machinery/teleport/station, get_step(src, dir))
30+
for(var/direction in GLOB.cardinals)
31+
power_station = locate(/obj/machinery/teleport/station, get_step(src, direction))
3232
if(power_station)
3333
break
3434
return power_station
Collapse file

‎code/game/machinery/teleporter.dm‎

Copy file name to clipboardExpand all lines: code/game/machinery/teleporter.dm
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
/obj/machinery/teleport/hub/proc/link_power_station()
3636
if(power_station)
3737
return
38-
for(dir in list(NORTH,EAST,SOUTH,WEST))
39-
power_station = locate(/obj/machinery/teleport/station, get_step(src, dir))
38+
for(var/direction in GLOB.cardinals)
39+
power_station = locate(/obj/machinery/teleport/station, get_step(src, direction))
4040
if(power_station)
4141
break
4242
return power_station
@@ -127,13 +127,13 @@
127127
efficiency = E - 1
128128

129129
/obj/machinery/teleport/station/proc/link_console_and_hub()
130-
for(dir in list(NORTH,EAST,SOUTH,WEST))
131-
teleporter_hub = locate(/obj/machinery/teleport/hub, get_step(src, dir))
130+
for(var/direction in GLOB.cardinals)
131+
teleporter_hub = locate(/obj/machinery/teleport/hub, get_step(src, direction))
132132
if(teleporter_hub)
133133
teleporter_hub.link_power_station()
134134
break
135-
for(dir in list(NORTH,EAST,SOUTH,WEST))
136-
teleporter_console = locate(/obj/machinery/computer/teleporter, get_step(src, dir))
135+
for(var/direction in GLOB.cardinals)
136+
teleporter_console = locate(/obj/machinery/computer/teleporter, get_step(src, direction))
137137
if(teleporter_console)
138138
teleporter_console.link_power_station()
139139
break
Collapse file

‎code/game/objects/structures/tables_racks.dm‎

Copy file name to clipboardExpand all lines: code/game/objects/structures/tables_racks.dm
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@
378378

379379
/obj/structure/table/optable/New()
380380
..()
381-
for(var/dir in GLOB.cardinals)
382-
computer = locate(/obj/machinery/computer/operating, get_step(src, dir))
381+
for(var/direction in GLOB.cardinals)
382+
computer = locate(/obj/machinery/computer/operating, get_step(src, direction))
383383
if(computer)
384384
computer.table = src
385385
break

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.