summaryrefslogtreecommitdiff
path: root/timer.cpp
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-29 23:42:48 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-29 23:42:48 +0100
commit9274355bfdbdbc32deab5505fb65ef22a3048757 (patch)
treec9385a32e2ed7b80a5f07156749f3681bb25e8ed /timer.cpp
parent6709cdbcf91561e70c9cb504663bb4b5f95f1ed3 (diff)
Fix Clock::stop().
Diffstat (limited to 'timer.cpp')
-rw-r--r--timer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/timer.cpp b/timer.cpp
index 1285d65..b77251b 100644
--- a/timer.cpp
+++ b/timer.cpp
@@ -16,6 +16,7 @@ void Clock::start() {
}
void Clock::stop() {
+ if(!running) return;
running = false;
base += clock.GetElapsedTime();
}