mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
Merge branch 'master' of https://github.com/PolarisSS13/Polaris into polaris-merge-2017-05-26
# Conflicts: # code/game/gamemodes/technomancer/spells/insert/mend_burns.dm # code/game/gamemodes/technomancer/spells/insert/mend_metal.dm # code/game/gamemodes/technomancer/spells/insert/mend_organs.dm # code/game/gamemodes/technomancer/spells/insert/mend_wires.dm # code/game/machinery/computer/Operating.dm # code/game/machinery/computer/camera.dm # code/game/machinery/computer/communications.dm # code/game/machinery/computer/security.dm # code/game/machinery/computer/skills.dm # code/game/objects/items/devices/radio/jammer.dm # html/changelogs/.all_changelog.yml # maps/~map_system/maps.dm # nano/images/nanomap_z1.png # nano/images/nanomap_z5.png
This commit is contained in:
@@ -24,12 +24,16 @@ Class Procs:
|
||||
erase_all()
|
||||
Called when the turf is changed with ChangeTurf(). Erases all existing connections.
|
||||
|
||||
Macros:
|
||||
check(connection/c)
|
||||
Checks for connection validity. It's possible to have a reference to a connection that has been erased.
|
||||
|
||||
|
||||
*/
|
||||
|
||||
// macro-ized to cut down on proc calls
|
||||
#define check(c) (c && c.valid())
|
||||
|
||||
/turf/var/tmp/connection_manager/connections
|
||||
|
||||
/connection_manager/var/connection/N
|
||||
@@ -98,5 +102,4 @@ Class Procs:
|
||||
if(check(D)) D.erase()
|
||||
#endif
|
||||
|
||||
/connection_manager/proc/check(connection/c)
|
||||
return c && c.valid()
|
||||
#undef check
|
||||
|
||||
Reference in New Issue
Block a user