nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb0d0be
)
gamnit: lapse clock on resume, so `update` ignores the time in the background
author
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 4 Dec 2017 18:06:08 +0000
(13:06 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 20 Dec 2017 15:21:28 +0000
(10:21 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/gamnit/flat/flat_core.nit
patch
|
blob
|
history
diff --git
a/lib/gamnit/flat/flat_core.nit
b/lib/gamnit/flat/flat_core.nit
index
8f9bff1
..
59f4b37
100644
(file)
--- a/
lib/gamnit/flat/flat_core.nit
+++ b/
lib/gamnit/flat/flat_core.nit
@@
-495,6
+495,12
@@
redef class App
for sprite in ui_sprites do sprite.needs_update
end
+ redef fun on_resume
+ do
+ clock.lapse
+ super
+ end
+
redef fun frame_core(display)
do
# Check errors