projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
a few fixes that I had lying around here, select walk animation in worldmap when...
[supertux.git]
/
src
/
timer.cpp
diff --git
a/src/timer.cpp
b/src/timer.cpp
index
40be503
..
0ab3a7a
100644
(file)
--- a/
src/timer.cpp
+++ b/
src/timer.cpp
@@
-22,7
+22,7
@@
#include <math.h>
#include "timer.hpp"
#include <math.h>
#include "timer.hpp"
-float g
lobal
_time = 0;
+float g
ame
_time = 0;
Timer::Timer()
: period(0), cycle_start(0), cyclic(false)
Timer::Timer()
: period(0), cycle_start(0), cyclic(false)
@@
-38,7
+38,7
@@
Timer::start(float period, bool cyclic)
{
this->period = period;
this->cyclic = cyclic;
{
this->period = period;
this->cyclic = cyclic;
- cycle_start = g
lobal
_time;
+ cycle_start = g
ame
_time;
}
bool
}
bool
@@
-47,9
+47,9
@@
Timer::check()
if(period == 0)
return false;
if(period == 0)
return false;
- if(g
lobal
_time - cycle_start >= period) {
+ if(g
ame
_time - cycle_start >= period) {
if(cyclic) {
if(cyclic) {
- cycle_start = g
lobal_time - fmodf(global
_time - cycle_start, period);
+ cycle_start = g
ame_time - fmodf(game
_time - cycle_start, period);
} else {
period = 0;
}
} else {
period = 0;
}