mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Fixed a runtime error when you try building a pipe section that doesn't connect to something
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@399 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -190,13 +190,16 @@ Buildable meters
|
||||
P.initialize_directions = EAST|WEST
|
||||
P.level = level
|
||||
P.initialize()
|
||||
P.build_network()
|
||||
if (P.node1)
|
||||
P.node1.initialize()
|
||||
P.node1.build_network()
|
||||
if (P.node2)
|
||||
P.node2:initialize()
|
||||
P.node2.build_network()
|
||||
if (P)
|
||||
P.build_network()
|
||||
if (P.node1)
|
||||
P.node1.initialize()
|
||||
P.node1.build_network()
|
||||
if (P.node2)
|
||||
P.node2:initialize()
|
||||
P.node2.build_network()
|
||||
else
|
||||
usr << "There's nothing to connect this pipe section to! (with how the pipe code works, at least one end needs to be connected to something, otherwise the game deletes the segment)"
|
||||
|
||||
|
||||
if(1) // bent pipe
|
||||
@@ -216,13 +219,17 @@ Buildable meters
|
||||
P.initialize_directions = NORTH|WEST
|
||||
P.level = level
|
||||
P.initialize()
|
||||
P.build_network()
|
||||
if (P.node1)
|
||||
P.node1.initialize()
|
||||
P.node1.build_network()
|
||||
if (P.node2)
|
||||
P.node2:initialize()
|
||||
P.node2.build_network()
|
||||
if (P)
|
||||
P.build_network()
|
||||
if (P.node1)
|
||||
P.node1.initialize()
|
||||
P.node1.build_network()
|
||||
if (P.node2)
|
||||
P.node2:initialize()
|
||||
P.node2.build_network()
|
||||
else
|
||||
usr << "There's nothing to connect this pipe section to! (with how the pipe code works, at least one end needs to be connected to something, otherwise the game deletes the segment)"
|
||||
|
||||
|
||||
/*
|
||||
if(2,3) // straight or bent h/e pipe
|
||||
|
||||
Reference in New Issue
Block a user