renet 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: f332d6f6ddc4ab88a3040a50807e1bab8244e2e0
4
- data.tar.gz: d05c0480678a493730ac76734c72c7bc4e01dbea
3
+ metadata.gz: f35519f3b0040c2c3b2e3ec29480aa0aedc358d6
4
+ data.tar.gz: 29316765a50eb3f3dd8102b8f9d4e5c9736eb2eb
5
5
  SHA512:
6
- metadata.gz: b54950e6c229e46b00ef6e87b7e41b48cd0c87011c88df24ade3d4962db1ef6aeac7bf73a931f32dacd3cff6dfcb91bffe4ec23864b3e5de08a52657911ff01c
7
- data.tar.gz: 8e51547c005807b50e85bad9bf60dead316ffc68015119966a417c614e5b0b979a8856a8cee314192ce626d3afd305983d6e2a02fbde8f0f94745cb55ae5d5d9
6
+ metadata.gz: 7a59e89baa98c99daa7aaf820af8ef8f11399852283ddd4b85425ce70b07864038b9c76c338bc475b5a47a738b7e9f86396ae2937bbbd30e291c48fc252c6e3a
7
+ data.tar.gz: 94d4286b31e39366ddd2b5abd1c8046541c88aba2b654d1ca834e014394b0229cb236a9801a01ad700855d88e7a1ba42b9876b326a9123705ab63a4754ca7cf5
@@ -234,11 +234,11 @@ VALUE renet_connection_send_packet(VALUE self, VALUE data, VALUE flag, VALUE cha
234
234
  {
235
235
  if (flag == Qtrue)
236
236
  {
237
- packet = enet_packet_create(cdata, RSTRING_LEN(data) + 1, ENET_PACKET_FLAG_RELIABLE);
237
+ packet = enet_packet_create(cdata, RSTRING_LEN(data), ENET_PACKET_FLAG_RELIABLE);
238
238
  }
239
239
  else
240
240
  {
241
- packet = enet_packet_create(cdata, RSTRING_LEN(data) + 1, 0);
241
+ packet = enet_packet_create(cdata, RSTRING_LEN(data), 0);
242
242
  }
243
243
  enet_peer_send(connection->peer, NUM2UINT(channel), packet);
244
244
  }
@@ -115,11 +115,11 @@ VALUE renet_server_send_packet(VALUE self, VALUE peer_id, VALUE data, VALUE flag
115
115
  ENetPacket* packet;
116
116
  if (flag == Qtrue)
117
117
  {
118
- packet = enet_packet_create(cdata, RSTRING_LEN(data) + 1, ENET_PACKET_FLAG_RELIABLE);
118
+ packet = enet_packet_create(cdata, RSTRING_LEN(data), ENET_PACKET_FLAG_RELIABLE);
119
119
  }
120
120
  else
121
121
  {
122
- packet = enet_packet_create(cdata, RSTRING_LEN(data) + 1, 0);
122
+ packet = enet_packet_create(cdata, RSTRING_LEN(data), 0);
123
123
  }
124
124
  enet_peer_send(&(server->host->peers[NUM2UINT(peer_id)]), NUM2UINT(channel), packet);
125
125
  rb_mutex_unlock(lock);
@@ -137,11 +137,11 @@ VALUE renet_server_broadcast_packet(VALUE self, VALUE data, VALUE flag, VALUE ch
137
137
  ENetPacket* packet;
138
138
  if (flag == Qtrue)
139
139
  {
140
- packet = enet_packet_create(cdata, RSTRING_LEN(data) + 1, ENET_PACKET_FLAG_RELIABLE);
140
+ packet = enet_packet_create(cdata, RSTRING_LEN(data), ENET_PACKET_FLAG_RELIABLE);
141
141
  }
142
142
  else
143
143
  {
144
- packet = enet_packet_create(cdata, RSTRING_LEN(data) + 1, 0);
144
+ packet = enet_packet_create(cdata, RSTRING_LEN(data), 0);
145
145
  }
146
146
  enet_host_broadcast(server->host, NUM2UINT(channel), packet);
147
147
  rb_mutex_unlock(lock);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dahrkael & Job Vranish
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-13 00:00:00.000000000 Z
11
+ date: 2016-10-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby library for games networking. Uses ENet as backend
14
14
  email: dark.wolf.warrior@gmail.com
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  requirements: []
68
68
  rubyforge_project:
69
- rubygems_version: 2.4.5
69
+ rubygems_version: 2.6.7
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Ruby library for games networking. Uses ENet as backend