small fixes
This commit is contained in:
parent
6f0fcc6406
commit
5171a9f42d
@ -303,7 +303,7 @@ void Network::dispatch(enet_uint8 *data, size_t length) {
|
||||
if (dp.length2() > 5.)
|
||||
player->body->getWorldTransform().setOrigin(p1);
|
||||
else
|
||||
player->body->getWorldTransform().setOrigin(p + dp/10.);
|
||||
player->body->getWorldTransform().setOrigin(p + dp / 10.);
|
||||
//player->body->applyCentralForce((v1 -v)/10.0);
|
||||
#endif
|
||||
#if 0
|
||||
@ -518,7 +518,6 @@ void Network::send(const YAML::Emitter &em) {
|
||||
|
||||
void Network::sendMessage(uint8_t *data, size_t length) {
|
||||
if (client_peer) {
|
||||
std::cout << data << std::endl;
|
||||
ENetPacket * packet = enet_packet_create(data, length,
|
||||
ENET_PACKET_FLAG_RELIABLE);
|
||||
enet_peer_send(client_peer, 0, packet);
|
||||
|
@ -16,4 +16,4 @@ typedef unsigned __int64 uint64_t;
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user