openra 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e488c6ceb71360aa93bfcb831c16754fbe2ba4faf55608a7572b8b302e1820bb
4
- data.tar.gz: a78247905a1918531599f321bfa3b1c31d4b2520e3f955b55dc15e44c4db3fc5
3
+ metadata.gz: 30d4d798e59b17cc3ce4e5ab7b5668eeccdf278abde065ca3d4072ce7b55d765
4
+ data.tar.gz: 16a57966678839e8422cfc2cbbe4ccee109d5a6c639adc65d888cb8556f3e21a
5
5
  SHA512:
6
- metadata.gz: e69e8ceeeabbd611d12f54850ffbd89fee488637d895d783c13582d1747426cad2659248d9c38332576125d5c5d0854a6ff82d384f52bfa05ba81dcb9792e9d5
7
- data.tar.gz: 4926b3ce501e4c138239bd3660b45baa3199484b8c33ec8bf7fe8ecb0922673c9f1d841e07195fe2db38202217a2e55fbb471faffc31ba4fee6ca1b3a57d001b
6
+ metadata.gz: '09a36fe3464981b68d1b4ed936352fa7c060dd0b2aefe0e166088e335146818f7fc13454be60cfb6b73e36496cff8a794c10ccde05ca5c2d0d4674ffebb0b96d'
7
+ data.tar.gz: 15e26c775fdffaf32d92a9f73af433576c6e119d40274abdbc6de90ed05a5d8a7c140982a4f14cef2c42f5898389898a41e84f557ee9970a6645deb56f4275e6
@@ -1,6 +1,14 @@
1
1
  ## Unreleased
2
2
 
3
- [Compare v2.1.0...HEAD](https://github.com/AMHOL/openra-ruby/compare/v2.1.0...HEAD)
3
+ [Compare v2.2.0...HEAD](https://github.com/AMHOL/openra-ruby/compare/v2.2.0...HEAD)
4
+
5
+ ## v2.2.0
6
+
7
+ ### Fixed
8
+
9
+ * [replay-data] Fixed timing calculations ([AMHOL](https://github.com/AMHOL))
10
+
11
+ [Compare v2.1.0...v2.2.0](https://github.com/AMHOL/openra-ruby/compare/v2.1.0...v2.2.0)
4
12
 
5
13
  ## v2.1.0
6
14
 
@@ -114,7 +114,7 @@ module Openra
114
114
 
115
115
  client_hash[:support_powers] << {
116
116
  type: key,
117
- game_time: time(order.frame * sync_info.global_settings.frametime_multiplier),
117
+ game_time: time(order.frame.pred * sync_info.global_settings.frametime_multiplier),
118
118
  placement: cell(order.target_cell.to_i),
119
119
  extra_placement: cell(order.extra_cell.to_i),
120
120
  }
@@ -127,7 +127,7 @@ module Openra
127
127
 
128
128
  client_hash[:build] << {
129
129
  structure: utf8(order.target),
130
- game_time: time(order.frame * sync_info.global_settings.frametime_multiplier),
130
+ game_time: time(order.frame.pred * sync_info.global_settings.frametime_multiplier),
131
131
  placement: cell(order.target_cell.to_i)
132
132
  }
133
133
  when 'Message'
@@ -34,7 +34,7 @@ module Openra
34
34
  end
35
35
 
36
36
  def frametime_multiplier
37
- timestep * order_latency
37
+ timestep * 3
38
38
  end
39
39
  end
40
40
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Openra
4
- VERSION = '2.1.0'.freeze
4
+ VERSION = '2.2.0'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Holland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-12 00:00:00.000000000 Z
11
+ date: 2020-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler