Skip to content

Commit

Permalink
-Fixed bug with setting cube grid dampeners on/off
Browse files Browse the repository at this point in the history
-Fixed bug with setting door open/closed state
  • Loading branch information
chessmaster42 committed Aug 29, 2014
1 parent 5bd9fd7 commit fa3e2bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ private Object GetPowerManager()

private Object GetThrusterManager()
{
Object manager = BaseObject.InvokeEntityMethod(BackingObject, CubeGridManagerManagerGetPowerManagerMethod);
Object manager = BaseObject.InvokeEntityMethod(BackingObject, CubeGridManagerManagerGetThrusterManagerMethod);
return manager;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public DoorEntity(CubeGridEntity parent, MyObjectBuilder_Door definition, Object

[IgnoreDataMember]
[Category("Door")]
[ReadOnly(true)]
public float Opening
{
get { return ObjectBuilder.Opening; }
Expand All @@ -87,7 +88,7 @@ public bool State
}
set
{
if (m_state == value) return;
if (State == value) return;
m_state = value;
ObjectBuilder.State = value;
Changed = true;
Expand Down Expand Up @@ -146,8 +147,8 @@ protected void InternalUpdateDoor()
{
try
{
InvokeEntityMethod(ActualObject, DoorBroadcastStateMethod, new object[] { m_state });
InvokeEntityMethod(ActualObject, DoorSetStateMethod, new object[] { m_state });
InvokeEntityMethod(ActualObject, DoorBroadcastStateMethod, new object[] { m_state });
}
catch (Exception ex)
{
Expand Down

0 comments on commit fa3e2bf

Please sign in to comment.