Skip to content

Commit

Permalink
Requested changes, cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRThompson authored and jason-watkins committed Jul 6, 2017
1 parent 6b8b863 commit eb59bd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xpcPlugin/MessageHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ namespace XPC

if (aircraftNumber > 0)
{
// Enable AI for the aircraftNumber we are setting: MRT COMMENT: ENABLE, OR DISABLE?
// Enable AI for the aircraftNumber we are setting
float ai[20];
std::size_t result = DataManager::GetFloatArray(DREF_PauseAI, ai, 20);
if (result == 20) // Only set values if they were retrieved successfully.
Expand Down Expand Up @@ -618,17 +618,17 @@ namespace XPC
DataManager::GetIntArray(DREF_Pause, value, 20);
value[v - 100] = 1;
}
else if ((v >= 200) && (v < 120))
else if ((v >= 200) && (v < 220))
{
DataManager::GetIntArray(DREF_Pause, value, 20);
value[v - 100] = 0;
value[v - 200] = 0;
}
else
{
for (int i = 0; i < 20; ++i)
{
value[i] = v;
}
}
}

// Set DREF
Expand Down

0 comments on commit eb59bd3

Please sign in to comment.