small fixes

This commit is contained in:
gmueller 2011-01-25 22:53:57 +01:00
parent 6f0fcc6406
commit 5171a9f42d
2 changed files with 2 additions and 3 deletions

View File

@ -303,7 +303,7 @@ void Network::dispatch(enet_uint8 *data, size_t length) {
if (dp.length2() > 5.) if (dp.length2() > 5.)
player->body->getWorldTransform().setOrigin(p1); player->body->getWorldTransform().setOrigin(p1);
else else
player->body->getWorldTransform().setOrigin(p + dp/10.); player->body->getWorldTransform().setOrigin(p + dp / 10.);
//player->body->applyCentralForce((v1 -v)/10.0); //player->body->applyCentralForce((v1 -v)/10.0);
#endif #endif
#if 0 #if 0
@ -518,7 +518,6 @@ void Network::send(const YAML::Emitter &em) {
void Network::sendMessage(uint8_t *data, size_t length) { void Network::sendMessage(uint8_t *data, size_t length) {
if (client_peer) { if (client_peer) {
std::cout << data << std::endl;
ENetPacket * packet = enet_packet_create(data, length, ENetPacket * packet = enet_packet_create(data, length,
ENET_PACKET_FLAG_RELIABLE); ENET_PACKET_FLAG_RELIABLE);
enet_peer_send(client_peer, 0, packet); enet_peer_send(client_peer, 0, packet);

View File

@ -16,4 +16,4 @@ typedef unsigned __int64 uint64_t;
#include <stdbool.h> #include <stdbool.h>
#endif #endif
#endif #endif