summaryrefslogtreecommitdiffstats
path: root/Project/Machines.cpp
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-11-01 19:36:24 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-11-01 19:36:24 -0200
commitb306118b2683cf6f264b5f1617c3e0e62a6c9042 (patch)
tree2059f3a6647d5021a0eaa7f1b08635cbcd83def0 /Project/Machines.cpp
parent7d4df7195202eaea0e84f227e96f19dec4144081 (diff)
downloadPSP.git-b306118b2683cf6f264b5f1617c3e0e62a6c9042.tar.gz
PSP.git-b306118b2683cf6f264b5f1617c3e0e62a6c9042.tar.xz
PSP.git-b306118b2683cf6f264b5f1617c3e0e62a6c9042.zip
Power flow (gs) under implementation
Diffstat (limited to 'Project/Machines.cpp')
-rw-r--r--Project/Machines.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/Project/Machines.cpp b/Project/Machines.cpp
index 0f2dc43..12afe61 100644
--- a/Project/Machines.cpp
+++ b/Project/Machines.cpp
@@ -106,7 +106,6 @@ void Machines::MoveNode(Element* element, wxPoint2DDouble position)
if(m_activeNodeID == 1) {
m_pointList[0] = m_movePts[0] + position - m_moveStartPt;
m_parentList[0] = NULL;
- m_pfDirection = PF_NONE;
m_online = false;
}
}
@@ -138,7 +137,6 @@ void Machines::RemoveParent(Element* parent)
{
if(parent == m_parentList[0]) {
m_parentList[0] = NULL;
- m_pfDirection = PF_NONE;
UpdateSwitchesPosition();
UpdatePowerFlowArrowsPosition();
}
@@ -181,7 +179,6 @@ bool Machines::SetNodeParent(Element* parent)
else
{
m_parentList[0] = NULL;
- m_pfDirection = PF_NONE;
m_online = false;
}
}
@@ -196,7 +193,6 @@ void Machines::UpdateNodes()
if(!m_parentList[0]->Intersects(nodeRect)) {
m_parentList[0] = NULL;
- m_pfDirection = PF_NONE;
m_online = false;
UpdateSwitchesPosition();
UpdatePowerFlowArrowsPosition();