Skip to content

Commit

Permalink
Update Trajectory.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Aug 30, 2024
1 parent ca1b4ad commit c768f69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Hacks/Show Trajectory/Trajectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void TrajectoryBGL::checkRepellPlayer()

if (m_fields->trajectoryPlayer)
{
m_fields->trajectoryDraw->clear();
//m_fields->trajectoryDraw->clear();

resetSimulation(m_player1);
simulateTrajectory(true, m_player1);
Expand Down Expand Up @@ -421,6 +421,8 @@ void TrajectoryBGL::simulateTrajectory(bool press, PlayerObject* player)

m_fields->trajectoryPlayer->update(delta);
this->checkCollisions(m_fields->trajectoryPlayer, delta, false);

/*
drawSegmentAlternative(m_fields->trajectoryDraw, m_fields->trajectoryPlayer->getPosition(), m_fields->point, 0.5f, m_fields->trajectoryPlayer->m_isDead ? ccc4f(1, 0, 0, 1) : ccc4f(0, press ? 1 : 0.45f, 0, 1));
m_fields->point = m_fields->trajectoryPlayer->getPosition();
Expand All @@ -439,7 +441,7 @@ void TrajectoryBGL::simulateTrajectory(bool press, PlayerObject* player)
m_fields->trajectoryDraw->drawPolygon(squareVertices, 4, ccc4f(0, 0, 0, 0), 0.35f, ccc4f(1, 0, 0, 1));
return;
}
}*/
}
}

Expand Down

0 comments on commit c768f69

Please sign in to comment.