tungsten-engine 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +3 -0
  3. data/lib/core/game.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e8ec92a483aaa8b58407912370f8ca5dd86fc49
4
- data.tar.gz: 84facf655f197138ea6ad6c926855ffe331da83e
3
+ metadata.gz: c2bff579f7d7c36b4cbd26de46e6e5bdc7dd9ec7
4
+ data.tar.gz: 7db895f75dd69b29f59cc2be74e5ae69fc71e13d
5
5
  SHA512:
6
- metadata.gz: 931cec36f7265cb032deac3e62fb3d3f25785287a23bf3d01cd23b9e0f9350a32a17a486e98f1045045c79218901bb3c1054b8ff8c2ce4018d3d321004d7b665
7
- data.tar.gz: af1404366b6be303337d3503a2f652d1f997cd35f28fec2e2c067e705a0de08ec971743a53620f427f674d2ca034cb2c36c1e020db100c287226970bf2052a91
6
+ metadata.gz: 87caaa90996c1dcff70c509478703baefe806c6ffc8215ed1bd1a999fc7e97b3459306adaebfc0ccd89652336b7befe511c1dfd0a2f44d8f383c869d8c506355
7
+ data.tar.gz: c16fd41bf2d602ca911820f5c1df48cca5faa22c1d8d65f3a013e29f2d762c6db165a384ad282af3fe0d9a981498d9f5460958628d4a70f99995533d19764793
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ [Version 0.0.4]
2
+ - fixed bug with numeric comparison in Game class
3
+
1
4
  [Version 0.0.3]
2
5
  - added missing bigdecimal requirements for TimeSpan class
3
6
 
data/lib/core/game.rb CHANGED
@@ -34,7 +34,7 @@ module TungstenEngine
34
34
  total = TimeSpan.diff(started, now)
35
35
  elapsed = TimeSpan.diff(last_loop, now)
36
36
  spare = TimeSpan.diff(elapsed.microseconds, @target_frame_microseconds)
37
- slow = spare < 0
37
+ slow = (spare < 0)
38
38
  if @fixed_time_step && !slow
39
39
  Thread.current.sleep(spare.seconds)
40
40
  now = Time.now
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tungsten-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Meschke