Verified Commit ba37b58c authored by RobLoach's avatar RobLoach
Browse files

love.timer.step() now returns delta

parent d87d4075
......@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## 0.28.0 - Unreleased
### Features
- `love.timer.step()` now returns `dt`
### Fixes
- Fixes undefined reference to `process_sinc_neon_asm()`
- [#322](https://github.com/libretro/libretro-chailove/issues/322) found by [@ToKe79](https://github.com/ToKe79)
......
......@@ -10,7 +10,7 @@ float timer::getDelta() {
return m_delta;
}
void timer::step(float delta) {
float timer::step(float delta) {
m_delta = delta;
m_deltaCounter += delta;
m_frameCounter++;
......@@ -20,6 +20,8 @@ void timer::step(float delta) {
m_frameCounter = 0;
m_deltaCounter = 0;
}
return m_delta;
}
int timer::getFPS() {
......
......@@ -9,7 +9,7 @@ namespace love {
class timer {
public:
timer();
void step(float delta);
float step(float delta);
/**
* Returns the time between the last two frames.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment