Skip to content

Commit

Permalink
renderer: Use correct clock methods in demo 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Mar 2, 2023
1 parent ea01d87 commit 56e7966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libopenage/renderer/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1006,10 +1006,10 @@ void renderer_demo_4(const util::Path &path) {
switch (key) {
case Qt::Key_Space: {
if (clock.get_state() == event::ClockState::RUNNING) {
clock.stop();
clock.pause();
log::log(INFO << "Stopped simulation at " << clock.get_time() << " (real = " << clock.get_real_time() << ")");
}
else if (clock.get_state() == event::ClockState::STOPPED) {
else if (clock.get_state() == event::ClockState::PAUSED) {
clock.resume();
log::log(INFO << "Resumed simulation at " << clock.get_time() << " (real = " << clock.get_real_time() << ")");
}
Expand Down

0 comments on commit 56e7966

Please sign in to comment.